strutil

Text Escaping and Unescaping in JavaScript (UTF-8, UTF-16, UTF-32, dec, hex, and more)

node-strutil

Text Escaping and Unescaping in JavaScript (UTF-8, UTF-16, UTF-32, dec, hex, punycode, mime, base64, and more)

From http://0xcc.net/jsescape/ - adapted for use as a CommonJS module.

Original Copyright (c) 2007 Satoru Takabayashi <satoru 0xcc.net>

Adaptation Copyright (c) 2012 Pieter Raubenheimer pieter@wavana.com

All rights reserved. This is free software with ABSOLUTELY NO WARRANTY. You can redistribute it and/or modify it under the terms of the GNU General Public License version 2.