A Seneca.js plugin
Stream down and build seneca entities!
- Version: 0.0.4
- Tested on: Seneca 0.7.1
- Node: 0.10, 0.11, 0.12, 4
If you're using this module, and need help, you can:
- Post a github issue,
- Tweet to @senecajs,
- Ask on the Gitter.
If you are new to Seneca in general, please take a look at senecajs.org. We have everything from tutorials to sample apps to help get you up and running quickly.
To install, simply use npm. Remember you will need to install Seneca.js if you haven't already.
npm install seneca-entity-save-stream
To run tests, simply use npm:
npm run test
'use strict'
var seneca = require('seneca')()
var entSaveStream = require('..')
var pear = seneca.make('pear')
var pearImporter = entSaveStream(seneca, { name$: 'pear' })
pearImporter.on('one', function () {
console.log('element saved')
})
pearImporter.end({name: 'my pear', price: 200}, function () {
pear.list$({}, function (err, res) {
if (!err) console.log(res)
})
})
The Senecajs org encourages open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.
This project was kindly sponsored by nearForm.
Copyright Matteo Collina and other contributors 2014 - 2016, Licensed under MIT.