first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

13
build/node_modules/astw/test/json.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
var astw = require('../');
var test = require('tape');
test('json', function (t) {
t.plan(2);
var numbers = [ 1, 2 ];
var walk = astw('{"a":1,"b":2}');
walk(function (node) {
if (node.type === 'Literal' && typeof node.value === 'number') {
t.equal(node.value, numbers.shift());
}
});
});