Bachir Soussi Chiadmi cefd1c2ad0 updated sys and created publi | %!s(int64=7) %!d(string=hai) anos | |
---|---|---|
.. | ||
index.js | %!s(int64=7) %!d(string=hai) anos | |
license | %!s(int64=7) %!d(string=hai) anos | |
package.json | %!s(int64=7) %!d(string=hai) anos | |
readme.md | %!s(int64=7) %!d(string=hai) anos |
Indent each line in a string
$ npm install --save indent-string
var indentString = require('indent-string');
indentString('Unicorns\nRainbows', '♥', 4);
//=> ♥♥♥♥Unicorns
//=> ♥♥♥♥Rainbows
Required
Type: string
The string you want to indent.
Required
Type: string
The string to use for the indent.
Type: number
Default: 1
How many times you want indent
repeated.
MIT © Sindre Sorhus