pad-component
Pad strings to a given length
Last updated 12 years ago by tjholowaychuk .
Original npm · Tarball · package.json
$ npm install pad-component 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.0.1                                ...           latest (12 years ago)

1 Versions

  • 0.0.1                                ...           12 years ago
Maintainers (1)
Downloads
Total 2
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE