1.0.0 • Published 8 years ago

crip-pad v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

crip-pad Build Status

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