through2-map
Advanced tools
Comparing version 1.4.0 to 2.0.0
{ | ||
"name": "through2-map", | ||
"version": "1.4.0", | ||
"version": "2.0.0", | ||
"description": "A through2 to create an Array.prototype.map analog for streams.", | ||
@@ -38,11 +38,10 @@ "main": "index.js", | ||
"devDependencies": { | ||
"tape": "~2.13.2", | ||
"stream-spigot": "~3.0.4", | ||
"concat-stream": "~1.4.6" | ||
"tape": "~4.0.0", | ||
"stream-spigot": "~3.0.5", | ||
"terminus": "~1.0.12" | ||
}, | ||
"dependencies": { | ||
"terminus": "~1.0.10", | ||
"through2": "~0.5.1", | ||
"xtend": "^3.0.0" | ||
"through2": "~2.0.0", | ||
"xtend": "^4.0.0" | ||
} | ||
} |
@@ -31,3 +31,3 @@ through2-map | ||
// Additionally accepts `wantStrings` argument to conver buffers into strings | ||
// Additionally accepts `wantStrings` argument to convert buffers into strings | ||
var stripTags = map({wantStrings: true}, function (str) { | ||
@@ -62,20 +62,30 @@ // OMG don't actually use this | ||
`require("through2-map")([options,] fn)` | ||
--- | ||
``` | ||
require("through2-map")([options,] fn) | ||
``` | ||
Create a `stream.Transform` instance that will call `fn(chunk, index)` on each stream segment. | ||
`var Tx = require("through2-map").ctor([options,] fn)` | ||
--- | ||
- - - | ||
``` | ||
var Tx = require("through2-map").ctor([options,] fn) | ||
``` | ||
Create a reusable `stream.Transform` TYPE that can be called via `new Tx` or `Tx()` to create an instance. | ||
`require("through2-map").obj([options,] fn)` | ||
--- | ||
- - - | ||
``` | ||
require("through2-map").obj([options,] fn) | ||
``` | ||
Create a `through2-map` instance that defaults to `objectMode: true`. | ||
`require("through2-map").objCtor([options,] fn)` | ||
--- | ||
- - - | ||
``` | ||
require("through2-map").objCtor([options,] fn) | ||
``` | ||
Just like ctor, but with `objectMode: true` defaulting to true. | ||
@@ -82,0 +92,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
101
10038
+ Addedisarray@1.0.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedthrough2@2.0.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedterminus@~1.0.10
- Removedisarray@0.0.1(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedterminus@1.0.12(transitive)
- Removedthrough2@0.5.1(transitive)
- Removedxtend@3.0.0(transitive)
Updatedthrough2@~2.0.0
Updatedxtend@^4.0.0