Detalhes do pacote

blacklight

tjmehta13MIT1.1.1

Escape whitespace in strings

escape, whitepace, endlines, log

readme (leia-me)

blacklight Build Status

Escape whitespace in strings

Usage

Escape

var blacklight = require('blacklight');

var escaped = blacklight.escape('\t\r\n'); // '\t\r\n' escaped, '\\t\\r\\n'

Log

var blacklight = require('blacklight');

blacklight.log('\t\r\n'); // prints '\t\r\n' instead of whitespace
// or just
blacklight('\t\r\n'); // prints '\t\r\n' instead of whitespace

License

MIT