pad-component

0.0.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    289,823
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    289,823

Package Sidebar

Install

npm i pad-component

Weekly Downloads

289,823

Version

0.0.1

License

none

Last publish

Collaborators

  • tjholowaychuk