node-jsesc

Escape JavaScript strings, with short output (Node.js module)
  http://mths.be/jsesc
  0
  no reviews



Escapes JavaScript strings while generating the shortes possible valid ASCII-only output. This can be used to avoid various encoding issues.

Node.js is an event-based server-side JavaScript engine.