Initial commit

This commit is contained in:
Spencer Pincott
2024-07-15 22:20:13 -04:00
commit 97737ca1ae
16618 changed files with 934131 additions and 0 deletions

31
themes/keepit/node_modules/subarg/test/arg.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
var subarg = require('../');
var test = require('tape');
test('spaced multi sub-args', function (t) {
t.plan(2);
t.deepEqual(
subarg('beep -t [ boop -o a.txt -o b.txt -q ] -v'.split(/\s+/)),
{
_: [ 'beep'],
t: {
_: [ 'boop' ],
o: [ 'a.txt', 'b.txt' ],
q: true
},
v: true
}
);
t.deepEqual(
subarg('beep -t [boop -o a.txt -o b.txt -q] -v'.split(/\s+/)),
{
_: [ 'beep'],
t: {
_: [ 'boop' ],
o: [ 'a.txt', 'b.txt' ],
q: true
},
v: true
}
);
});

24
themes/keepit/node_modules/subarg/test/recursive.js generated vendored Normal file
View File

@@ -0,0 +1,24 @@
var subarg = require('../');
var test = require('tape');
test('recursive', function (t) {
t.plan(1);
t.deepEqual(
subarg('-a [ -b [ -c [ -d 5 ] ] ] -e 3'.split(/\s+/)),
{
_: [],
a: {
_: [],
b: {
_: [],
c: {
_: [],
d: 5
}
}
},
e: 3
}
);
});