{"name":"test262-stream","version":"1.1.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":"ae5bb17fee85fec019ba46dfa8be6e9993a47649","_id":"test262-stream@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.3.0","_npmUser":{"name":"jugglinmike","email":"mike@mikepennisi.com"},"dist":{"integrity":"sha512-rLcELPlXwUtrojRNGPpN9zMSUdSxYUX+wB4QAwq3+ylXYm/2Jh7KjsTWFFzHwPdxNF0HvbZlHzOgm2+BDxIe7w==","shasum":"18265217b8ca800d9ec432e37e6b8d192e12c6fd","tarball":"http://registry-npm.ywwl.com/test262-stream/download/test262-stream-1.1.0.tgz","fileCount":172,"unpackedSize":71860,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBzLU4MKsGl87MQMOkUKYWTBbpS64u4sk20YhfyX2FmwIhAJtSTXAsMqEQvuvuyINwhEeL63wcXQLY3RRaqKzY89zN"}],"size":14464,"noattachment":false,"key":"/test262-stream/-/test262-stream-1.1.0.tgz"},"maintainers":[{"name":"jugglinmike","email":"mike@mikepennisi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/test262-stream_1.1.0_1518983475163_0.6371491552275743"},"_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":1518983475313,"_cnpm_publish_time":1518983475313,"dist-tags":{"latest":"1.4.0"}}