Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junosuarez/node-tuttle
https://github.com/junosuarez/node-tuttle
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/junosuarez/node-tuttle
- Owner: junosuarez
- License: isc
- Created: 2014-05-30T20:35:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-17T17:44:28.000Z (over 10 years ago)
- Last Synced: 2024-10-28T12:53:22.700Z (18 days ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tuttle
data plumbing toolkitthis is just an easier way to get started using some common csv tools - check out the dependencies for some great modules you might wanna use on their own.
## usage
```js
var tuttle = require('tuttle')
var fs = require('fs')fs.createReadStream('./in.csv')
.pipe(tuttle.read())
.pipe(tuttle.through(function (row) {
console.log(row)
return row
}))
.pipe(tuttle.write())
.pipe(fs.createWriteStream('./out.csv'))```
## api
using [jsig](https://github.com/jden/jsig):
### `tuttle.read : (opts: Object) => Stream`
Returns a transform stream. See documentation for [binary-csv](https://npm.im/binary-csv)
Defaults to json object-mode streams. This is slightly slower, but easier to work with in most cases. You can override this by passing `{json: false}` in the `opts`.
## installation
$ npm install tuttle
## running the tests
From package root:
$ npm install
$ npm test## named after
Harry Tuttle, heating engineer!## contributors
- jden
## license
ISC. (c) MMXIV jden . See LICENSE.md