twreporter-react
Version:
React-Redux site for The Reporter Foundation in Taiwan
44 lines (26 loc) • 505 B
Markdown
> Left pad each line in a string

```
$ npm install --save lpad
```
```js
var lpad = require('lpad');
var str = 'foo\nbar';
/*
foo
bar
*/
lpad(str, ' ');
/*
foo
bar
*/
```
Pads each line in a string with the supplied string.
MIT © [Sindre Sorhus](http://sindresorhus.com)