diff --git a/package.json b/package.json index d62e5a5..98e8901 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "through2": "~0.5.1", "ever": "~0.0.3", "colornames": "~0.0.2" + "split2": "^2.1.0" }, "devDependencies": { "brfs": "^1.1.2", diff --git a/problems/writing_transforms/problem.txt b/problems/writing_transforms/problem.txt index fd20b1d..7de9b4b 100644 --- a/problems/writing_transforms/problem.txt +++ b/problems/writing_transforms/problem.txt @@ -41,7 +41,7 @@ output that looks like: You can either buffer up in the input with the `concat-stream` module and run your previous solution to the previous "using transforms" level or if -you are feeling adventurous, you can string together the `split`, +you are feeling adventurous, you can string together `split2`, `quote-stream`, and `through2` modules with `stream-combiner2` to build a transform that processes the files in-place. diff --git a/solutions/writing_transforms/tr.js b/solutions/writing_transforms/tr.js index 75ad0b1..013c965 100644 --- a/solutions/writing_transforms/tr.js +++ b/solutions/writing_transforms/tr.js @@ -1,5 +1,5 @@ var through = require('through2'); -var split = require('split'); +var split = require('split2'); var sprintf = require('sprintf'); var quote = require('quote-stream'); var combine = require('stream-combiner2');