UNPKG
rnpm
Version:
latest (1.9.0)
1.9.0
1.8.0
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.4.1
1.4.0
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.3.1
0.3.0
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
React Native Package Manager
github.com/rnpm/rnpm
rnpm/rnpm
rnpm
/
src
/
config
/
wrapCommands.js
10 lines
(8 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
makeCommand =
require
(
'../makeCommand'
);
module
.
exports
=
function
wrapCommands
(
commands
) {
const
mappedCommands = {};
Object
.
keys
(commands || []).
forEach
(
(
k
) =>
mappedCommands[k] =
makeCommand
(commands[k]) );
return
mappedCommands; };