{"name":"test262-stream","version":"1.2.2","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":"f74d02e86cae3e963ba62ad2bc9ec3faccad9ba0","_id":"test262-stream@1.2.2","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"jugglinmike","email":"mike@mikepennisi.com"},"dist":{"integrity":"sha512-a6wGFofxxRae4TTILhRt5mOEzFcInpEjeBWQmi5A2DkPVpgxznf+YvUNv5bO1X0oe2YPqAoecvkKfq5M2GZdGA==","shasum":"c22fc9223e2a8c4db7f3bfc0b4f4a6d6f1269e9d","tarball":"http://registry-npm.ywwl.com/test262-stream/download/test262-stream-1.2.2.tgz","fileCount":234,"unpackedSize":98414,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpsRuCRA9TVsSAnZWagAAP3kP/iA+z+zUBJVqCUHsj/gK\n7MyNhNc+5oEoZhQZfSwBeAZEfX0J9R5DHYwauH1/R3lhfhXNQGu31zrQx0el\nrfwelQs0enav1DZqm+ro24X64+bgPMHnPz7pWARt20+Cb+Z8zw7LpQwsk6RV\nfzv7de1IDACyFk9lEHxovE3044pX5Snaw8y2XRnveEVpyg14R0b2RU4SivMU\n3DeAn1ODOr7gK76bl/C15vFfgY5VjGeRam5NOrFths7mZJ6FADMiBZl+GNt4\nB/It3BnsRS2692ydvIAm1kMmkTr4Bdb2/XYaobFky2dBIk2LjkQY+5/PkiPt\nc5HVdylF/5nM1a2fA4JpckV8q12vfRca1DJ8uo+HIfAODdQ0j7vJxokcs/sg\npY84+3BBkobVclJDSa645H8yrxHpoJWq6tBuJXgkX1HOgX6QZdbIzvEiMvtn\nwK/DMUqFMB9QECvkitEYbfGJ/s73poRvgSbIYyLpnlvY9Y+oNmc734dA/oAt\n6ALb0a7gFiG7J0Mkvp2vc8pj6pWgz7hTP6mPjjIdHHVApV3d4q8bCYynWYmy\n7SDCT/aV/WOZq7XB4j70Fw7+pc1HnVTGypxjRhFdeL2HOh2vAbRtyIkIBlZU\nsLOSr82bIHCWKJBPXPAo7iH3wUsXY4ng0Jc/54vJ+sl81iXzmWVLkn9h/Q5I\nV9lc\r\n=/cjV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDmvN8CefD9mk/7VhX03egbTkq6vShnuXP7uiXOt3WG7AiBxm/dReVJrHV6LU6yCjVFlvIOKndgVQDqEH7BR2OJmCw=="}],"size":18276,"noattachment":false,"key":"/test262-stream/-/test262-stream-1.2.2.tgz"},"maintainers":[{"name":"jugglinmike","email":"mike@mikepennisi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test262-stream_1.2.2_1554433133828_0.073126642886165"},"_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":1554433133975,"_cnpm_publish_time":1554433133975,"dist-tags":{"latest":"1.4.0"}}