crip-pad
v1.0.0
Published
Left pad a string with crips
Downloads
3
Maintainers
Readme
crip-pad
Left pad a string with crips
Install
$ npm install --save crip-pad
Usage
const cripPad = require('crip-pad');
cripPad('TIMMAAYY', 9);
//=> '♿️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