$ npm install indent
Indent a string.
npm install indent
var indent = require('indent');
indent('hello\nworld', 2);
// " hello\n world"
indent('hello\nworld', ' ');
// " hello\n world"
indent('hello\nworld');
// " hello\n world"
indent('hello\nworld', '\t');
// "\thello\n\tworld"
© 2010 - cnpmjs.org x YWFE | Home | YWFE