{"name":"test262-stream","version":"1.4.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":"f8d07d790807b6f4498d1594439983783cf18fd8","_id":"test262-stream@1.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-s364askxqgyWAtIwvYCG5nYT3P32g9ByEt1ML49ubFlPE52GA6fG5ZZGmf4y/YJgKtppRAZZ7YVd9NOsk1oUxA==","shasum":"6e40d803464fa47480b0c43eb9c73c8071e52921","tarball":"http://registry-npm.ywwl.com/test262-stream/download/test262-stream-1.4.0.tgz","fileCount":234,"unpackedSize":104701,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgsXsFCRA9TVsSAnZWagAAs4IP/i12PQPl4MHdmcTN8g0K\n7z6W6c7TEnkkG6ZWLu1wQGhRJRwUSGsMtgbnrJrzjuhh1/3QNmMJ8Uh3Ycyq\nVv0GHqKFqd6FLCCJ/Q+hQ3G4zuLmaTfNv7aQQJVQknF1LdCP6/KCKkFJcuw1\n//DnSMFIKeS9O/baqH6MpNGknAoZioYEuOEYmXGtNWs/y8+g1yLI2pmoGMEI\nxwhb+RFHXSSMFLP5UaBpS+lLhvX0zLJDmef+eP4OxnrZnuzulix6mvTCktsv\n/2+uIkqtXIHfC9prjrMwZTiRWh+VSNVcq5MUJvXTPL//fByficW1uyo4eQm2\n0DZSFg5m+MFLrbQz3HsApUk/qv932u2pubHTPXJr2Va7GbvH3Z407PHyOx4c\nh3iMKhUt6oIVZS5Ys7texbD1FtQ40qQhG0OUDkV1gSTMLiVC2XqjIBJGbaxV\nvaW8DPbVGEuAptvGFlODLRJvRzIW2GRQqT1zj+2SgOhE6eIuin/btkU0BEQ8\nPHK5q1dLRVW0nx6BTPYm1z4JVmHUdd5nxrfIYjasvVOFz0KTcwHf/OvWGjQ6\nq1ciem3LWdt4sJAaI73vFY/Ud6U49l3EkgekjtYstoznLUz5iRyS7k/a9ZI8\nRZMm7s+0v0K6Da0894De2eq18ysqFb6jOP0CFWsHch7J4NvdlS7xQNi5lUlW\n5wjf\r\n=SYQp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyP3qc2Irl75V+IOpxA7WH7O5wunfmIsBzUaDcMaF+ywIhAJDFvkKvRGa/V5+vnkDXbb7IFZtp5Qk0/0G8h6bP3WyA"}],"size":17433,"noattachment":false,"key":"/test262-stream/-/test262-stream-1.4.0.tgz"},"_npmUser":{"name":"jugglinmike","email":"mike@mikepennisi.com"},"maintainers":[{"name":"jugglinmike","email":"mike@mikepennisi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test262-stream_1.4.0_1622244101375_0.6172644258485545"},"_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":1622244101565,"_cnpm_publish_time":1622244101565,"dist-tags":{"latest":"1.4.0"}}