unescape-stream

0.0.2 • Public • Published

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"

Readme

Keywords

none

Package Sidebar

Install

npm i unescape-stream

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • garyjob