Files
bake/contrib/bake-vscode/node_modules/pad-component
2019-09-17 13:20:42 -04:00
..
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00
2019-09-17 13:20:42 -04:00

pad

Trims string whitespace.

Installation

$ npm install pad-component
$ component install component/pad

API

pad(str, len[, char])

Pad str on both sides to the given len, with optional char defaulting to a space.

pad.left(str, len[, char])

Pad str on the left to the given len with optional char.

pad.right(str, len[, char])

Pad str on the right to the given len with optional char.

License

MIT