{"name":"test262-stream","version":"1.3.0","description":"A Node.js API for traversing the Test262 test suite","main":"lib/index.js","directories":{"test":"test"},"scripts":{"lint":"jshint lib test","test":"npm run lint && npm run test-unit","test-unit":"tape test/test.js"},"author":"","license":"BSD-3-Clause","devDependencies":{"jshint":"^2.10.2","mkdirp":"^0.5.1","rimraf":"^2.6.2","tape":"^4.8.0"},"dependencies":{"js-yaml":"^3.2.1","klaw":"^2.1.0"},"gitHead":"2184d13194c2262e4a4d134b5a598996e8e3cb8d","_id":"test262-stream@1.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"jugglinmike","email":"mike@mikepennisi.com"},"dist":{"integrity":"sha512-TSv+Z4hftmRuUJVJk7kaguWLlVLRfwyWm1DOt4kvTXAanATxv6A1HhjRTrSBI00XXEWQ+cUdsDii8tn+fkjXyw==","shasum":"98c4ab9f8e74c7f9478afcf52e071a89d319df61","tarball":"http://registry-npm.ywwl.com/test262-stream/download/test262-stream-1.3.0.tgz","fileCount":234,"unpackedSize":104711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwLweCRA9TVsSAnZWagAAvS8P/0o3Fi5kvSIWO1yIZgFJ\ngcsFqA3q4CJsR6UmnFgcFfjdZKLY1lkG76mRy4J8t/nncyvLfVPvnw5NBvlc\nHl17rFy9nutSLKwlXkS5ya2xOle7wYL2k1+9ohh4C/gQ5X195bRxW2MBwiFG\n/n0MnUVUy+N6/xd2pyDMg24ecP60OdB65mZ4AR3QT5iWTPz7OCyaWbZdMEaK\n1Qtj+z1Woq0q11jd4y2pThoQCNT6U+l8Hmr1P0ic8XH4cNcD9AIQUxLbbiWW\nWB6VEi4GoI/Mm58l6uSTdWU0kwp1N5+G9gJGfpOdyltIqDALcPMbdlzmcxo/\n8y0GwtQ7aOSDh/UwMm7JMWg5bY3dxdkgSnqw8MM51+1H8nh6MoHoCfRFfGGj\nhtdK/uC7OVOgh4rycz6VqLZOzKskvOqQPs7rdcyPQsHbJIogiiMCXpjhumwh\nJmwGKtLO59BfnGI9p0EuphXgiDb3ffwqbHztIGMrHn4I78cDTINAGgI+GFSL\nAk4iHw7CUQgY6s2KjZSlm1bskNquODZMnHtrgtixvTUN24ElLKM5LU+RofSn\nck6Pz3p6AKdIF+kNxTMZZUAKR3OdxLBUIG5/0m0gOECns1nynhfw3/0FmYfw\nwRwAg/3rVAlNzoycx9WlXP3zmrdcPQJWYpkqivrDNddMVb7YMhUDeB2U5xMx\nn87X\r\n=bpcC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxSh5X2c94dd7xKnWKljPyuXCBmZjirSuG372t0a988gIgDVKmaw8kKYHUP6yjyA4Wzz88l+a0aE4yhTIp/HgnK2I="}],"size":18292,"noattachment":false,"key":"/test262-stream/-/test262-stream-1.3.0.tgz"},"maintainers":[{"name":"jugglinmike","email":"mike@mikepennisi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test262-stream_1.3.0_1556134941349_0.46767827290983677"},"_hasShrinkwrap":false,"readme":"# Test262-Stream\n\nA [Node.js](https://nodejs.org) API for traversing [the Test262 test\nsuite](https://github.com/tc39/test262).\n\n## Usage\n\n```js\nvar TestStream = require('test262-stream');\nvar stream = new TestStream('/path/to/test262', {\n    // Directory from which to load \"includes\" files (defaults to the\n    // appropriate subdirectory of the provided `test262Dir`\n    // Optional. Defaults to './harness'\n    includesDir: '/path/to/includes/dir',\n\n    // File system paths refining the set of tests that should be produced;\n    // only tests whose source file matches one of these values (in the case of\n    // file paths) or is contained by one of these paths (in the case of\n    // directory paths) will be created; all paths are interpreted relative to\n    // the root of the provided `test262Dir`\n    // Optional. Defaults to ['test']\n    paths: ['test/built-ins/eval', 'test/language/statements/empty/S12.3_A1.js'],\n\n    // Flag to disable the insertion of code necessary to execute the test\n    // (e.g. assertion functions and \"include\" files); defaults to `false`\n    omitRuntime: true,\n\n    // By default, this stream will emit an error if the provided version of\n    // Test262 is not supported; this behavior may be disabled by providing a\n    // value of the expected version. Use of this option may cause the stream\n    // to emit invalid tests; consider updating the library instead.\n    acceptVersion: '2.0.0'\n  });\n\nstream.on('data', function(test) {\n    // the path to the file from which the test was derived, relative to the\n    // provided Test262 directory\n    console.log(test.file);\n\n    // the complete source text for the test; this contains any \"includes\"\n    // files specified in the frontmatter, \"prelude\" content if specified (see\n    // below), and any \"scenario\" transformations\n    console.log(test.contents);\n\n    // an object representation of the metadata declared in the test's\n    // \"frontmatter\" section\n    console.log(test.attrs);\n\n    // the licensing information included within the test (if any)\n    console.log(test.copyright);\n\n    // name describing how the source file was interpreted to create the test\n    console.log(test.scenario);\n\n    // numeric offset within the `contents` string at which one or more\n    // statements may be inserted without necessarily invalidating the test\n    console.log(test.insertionIndex);\n  });\n\nstream.on('end', function() {\n    console.log('No further tests.');\n  });\n\nstream.on('error', function(err) {\n    console.error('Something went wrong:', err);\n  });\n```\n\n## License\n\nCopyright 2017, Bocoup LLC under the 3-Clause BSD License (see `LICENSE.txt`)\n","publish_time":1556134941535,"_cnpm_publish_time":1556134941535,"dist-tags":{"latest":"1.4.0"}}