pad-component
Pad strings to a given length
Last updated 14 years ago by tjholowaychuk .
Original npm · Tarball · package.json
$ cnpm 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 (14 years ago)

1 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |