unescape-stream
v0.0.2
Published
Remove instances of repeated escapes '\' in an arbituarily large file
Downloads
6
Readme
Unescape Stream
Remove instances of repeated escapes '' in an arbituarily large file
Installation
npm install unescape-stream
Usage
UnescapeStream = require "unescape-stream"
ues = new UnescapeStream()
data = ""
fs.createReadStream(__dirname + "/fixtures/escaped_string_long")
.pipe @ues
@ues.on "data", (chunk)->
data += chunk
@ues.on "end", ()->
console.log data
Sample File
This is the first line\\\\\nThis is the second line
Sample output
output = "This is the first line\nThis is the second line"