Sha256: 67cf0c3501600e7dde3ab66edbcb0197e764ee86be3921f92acde0158cdda7d0

Contents?: true

Size: 1.87 KB

Versions: 2

Compression:

Stored size: 1.87 KB

Contents

{
  "name": "through",
  "version": "2.2.1",
  "description": "simplified stream contruction",
  "main": "index.js",
  "scripts": {
    "test": "asynct test/*.js"
  },
  "devDependencies": {
    "stream-spec": "0",
    "assertions": "2",
    "asynct": "1"
  },
  "keywords": [
    "stream",
    "streams",
    "user-streams",
    "pipe"
  ],
  "author": {
    "name": "Dominic Tarr",
    "email": "dominic.tarr@gmail.com",
    "url": "dominictarr.com"
  },
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/dominictarr/through.git"
  },
  "homepage": "http://github.com/dominictarr/through",
  "readme": "#through\n\n[![build status](https://secure.travis-ci.org/dominictarr/through.png)](http://travis-ci.org/dominictarr/through)\n\nEasy way to create a `Stream` that is both `readable` and `writable`. \n\n* Pass in optional `write` and `end` methods.\n* `through` takes care of pause/resume logic if you use `this.queue(data)` instead of `this.emit('data', data)`.\n* Use `this.pause()` and `this.resume()` to manage flow.\n* Check `this.paused` to see current flow state. (write always returns `!this.paused`).\n\nThis function is the basis for most of the syncronous streams in \n[event-stream](http://github.com/dominictarr/event-stream).\n\n``` js\nvar through = require('through')\n\nthrough(function write(data) {\n    this.queue(data) //data *must* not be null\n  },\n  function end () { //optional\n    this.queue(null)\n  })\n```\n\nOr, can also be used _without_ buffering on pause, use `this.emit('data', data)`,\nand this.emit('end')\n\n``` js\nvar through = require('through')\n\nthrough(function write(data) {\n    this.emit('data', data)\n    //this.pause() \n  },\n  function end () { //optional\n    this.emit('end')\n  })\n```\n\n## License\n\nMIT / Apache2\n",
  "readmeFilename": "readme.markdown",
  "_id": "through@2.2.1",
  "_from": "through@~2.2.1"
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sprockets-browserify-0.1.2 node_modules/through/package.json
sprockets-browserify-0.1.0 node_modules/through/package.json