Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/junosuarez/node-tuttle


https://github.com/junosuarez/node-tuttle

Last synced: 8 days ago
JSON representation

Awesome Lists containing this project

README

        

# tuttle
data plumbing toolkit

this 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