1.0.0 • Published 9 years ago

text-to-string v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

text-to-string

Transform Text into a single line String

install

npm install text-to-string

usage

this utility function can be used in node.js as well as in the browser e.g. with browserify.

var text2string = require('text-to-string');
var text = fs.readFileSync(__dirname + '/README.md', 'utf-8');
var str = text2string(text);

inspiration