pad-component / 0.0.1 last updated 2 years ago created on Sep 26th 2012
Install
npm install --save pad-component
dependencies
No dependencies listed.
maintainers
versions
| 0.0.1 | 2 years ago | tjholowaychuk |
readme
pad
Trims string whitespace.
Installation
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