Package Exports
- pad-component
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pad-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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