lpad ![Build Status](https://camo.githubusercontent.com/e1a6f368499518d36e7a6c14cf34a80d15dee1162186b4b8e3a1aaf11913699f/68747470733a2f2f7472617669732d63692e6f72672f73696e647265736f726875732f6c7061642e7376673f6272616e63683d6d6173746572)
Left pad each line in a string
Install
$ npm install --save lpad
Usage
const lpad = require('lpad');
const str = 'foo\nbar';
/*
foo
bar
*/
lpad(str, ' ');
/*
foo
bar
*/
API
lpad(input, pad)
Pads each line in a string with the supplied string.
input
Type: string
String that will be padded.
pad
Type: string
String that will be prepended to each line.
License
MIT © Sindre Sorhus