crip-pad
Left pad a string with crips
Install
$ npm install --save crip-pad
Usage
const cripPad = ; ;//=> '♿️TIMMAAYY'
API
cripPad(input, length)
Pads input
with crips on the left side if it's shorter than length
. Padding crips are truncated if they exceed length
.
input
Type: string
String to pad.
length
Type: number
Default: 0
Padding length.
License
MIT © Johnie Hjelm