Package Exports
- data-streams
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (data-streams) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
data-streams
Transforms the resources of a datapackage into streams
Usage
var Dpkg = require('data-streams');
var myDataPackage = require('datapackage.json');
var dpkg = new Dpkg(myDataPackage);
var stream = dpkg.createReadStream(name, options);name is the name of the resource, options, an object with
the following properties:
- objectMode: (true/false) return a stream in objectMode.
- coerce: (true/false) coerce the values according to the types specified in schema (implies objectMode)
- ldjsonify: (true/false) JSON.stringify + '\n' (implies objectMode)
Tests
npm testLicence
MIT
