Submit
Path:
~
/
/
usr
/
local
/
lib
/
node_modules
/
npm
/
node_modules
/
mkdirp
/
node_modules
/
minimist
/
test
/
File Content:
long.js
var test = require('tape'); var parse = require('../'); test('long opts', function (t) { t.deepEqual( parse([ '--bool' ]), { bool : true, _ : [] }, 'long boolean' ); t.deepEqual( parse([ '--pow', 'xixxle' ]), { pow : 'xixxle', _ : [] }, 'long capture sp' ); t.deepEqual( parse([ '--pow=xixxle' ]), { pow : 'xixxle', _ : [] }, 'long capture eq' ); t.deepEqual( parse([ '--host', 'localhost', '--port', '555' ]), { host : 'localhost', port : 555, _ : [] }, 'long captures sp' ); t.deepEqual( parse([ '--host=localhost', '--port=555' ]), { host : 'localhost', port : 555, _ : [] }, 'long captures eq' ); t.end(); });
Submit
FILE
FOLDER
Name
Size
Permission
Action
dash.js
726 bytes
0644
default_bool.js
454 bytes
0644
dotted.js
441 bytes
0644
long.js
779 bytes
0644
parse.js
7498 bytes
0644
parse_modified.js
240 bytes
0644
short.js
1593 bytes
0644
whitespace.js
191 bytes
0644
N4ST4R_ID | Naxtarrr