arudradey's picture
download
raw
649 Bytes
'use strict';
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();
});

Xet Storage Details

Size:
649 Bytes
·
Xet hash:
421f173fe731539d39c6e706c6a5c3ce9f7dc5866147a2d25d4fc4a01245f7c0

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.