UNPKG
brush_cli
Version:
latest (0.0.2)
0.0.2
0.0.1
A tool for creating and developing cmos PC Framework project.
brush_cli
/
node_modules
/
npm
/
lib
/
set.js
14 lines
(8 loc)
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module.exports =
set
set
.usage =
"npm set <key> <value> (See `npm config`)"
var
npm = require(
"./npm.js"
)
set
.completion = npm.commands.config.
completion function
set
(
args
, cb
)
{
if
(!
args
.length)
return
cb(
set
.usage) npm.commands.config([
"set"
].concat(
args
), cb) }