{"name":"test262-stream","version":"1.2.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.9.5","mkdirp":"^0.5.1","rimraf":"^2.6.2","tape":"^4.8.0"},"dependencies":{"klaw":"^2.1.0","test262-parser":"^2.0.7"},"gitHead":"5f85ed5f3241eff2ac7515aec874b18fb1cf896c","_id":"test262-stream@1.2.0","_npmVersion":"6.1.0","_nodeVersion":"8.3.0","_npmUser":{"name":"jugglinmike","email":"mike@mikepennisi.com"},"dist":{"integrity":"sha512-SHuSII4Dmg4BTNybTYf+h8rFs7y8rqm+WP9XxxrJvhOmbbkItlo4zRgaoavNUNbCMWrZiy6e81DF3vJhIlkf8A==","shasum":"37f03bf56672ec0f0120596372ea98313309d32e","tarball":"http://registry-npm.ywwl.com/test262-stream/download/test262-stream-1.2.0.tgz","fileCount":190,"unpackedSize":76607,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbEK8cCRA9TVsSAnZWagAAK5gP/jwTJaYaJ7rFRCaRuKEp\nXLlGU+x+Bgat0yGh+tL46cG2v5ArdT7Z2IQkoiFIbMyuOu+odaSuM1qMleia\nobMbGFIAhRS/vcbieAivp2athZzFDHEDa72TsdL+WocJHodm0eMJ9gJHpCN/\nYouUUh9Rekym1lf/LjTaIm8gpoqP4PFp4/KSD2PiJ533Fh8VZErNG7DT/IEN\nqrE4BW7cQ5Nr5zgu+yCpjUyLfF6uewYWauZsstNBxujZ8bSDreOv7dDCEezY\nKdYhoPNZyoT7OBxdrfLBZHlGmM8s6g/Ybzj9Wl6FViTc0aCJOSLyMjdXywwz\n4Y7O7TlEekI9c/zwOUZMGUs9y8u4lK0EtH9IgbGmqCD8sc0daJVa3+8sHEh6\n99gwff2HM5RnD9ylk2m9TfL4azERqNhHHcolYTPRDWhrFfwYgHbdcsxCfKDV\njTgQoexlMiYQ7vuBvkkx76uz6mOSqPV/QZr0LkoFPUfcYmgeENlO3CsKnNHZ\nQsYGS6XwRBBe9WID8gFX5/mln8ZoH9Jo3diw+2sH/4TFO34IzUjxubsCoRpp\n3MmJgTVuzUlb7bQVFIwCftw2Kp0rto47vKIBJF76Q66+ptqJLY0Yk6DEkpXF\nlgpETVuZtTBGIkxXHqmb0X1j2AqXdt6b3Uky4bxlzaGqb1Pm58cFP5beJ6Nw\nXaIs\r\n=e4iL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCY+AQvtN/75vLO1vXcWcN1/e65PR7nCo7JXAViym+5pQIhAO0M3nQogKux7HEKfxDE/rmY8KTYQo6mTmOhFtK0zrBx"}],"size":15070,"noattachment":false,"key":"/test262-stream/-/test262-stream-1.2.0.tgz"},"maintainers":[{"name":"jugglinmike","email":"mike@mikepennisi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test262-stream_1.2.0_1527820059156_0.5886607355372866"},"_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":1527820059232,"_cnpm_publish_time":1527820059232,"dist-tags":{"latest":"1.4.0"}}