# pad-component

> Pad strings to a given length

Latest version **0.0.1** (published 2012-09-26) · 0 weekly downloads

## Install

```sh
npm install pad-component
pnpm add pad-component
yarn add pad-component
bun add pad-component
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-09-26 |
| First published | 2012-09-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | TJ Holowaychuk |
| Maintainers | tjholowaychuk |
| Keywords | string, pad |

## Links

- npm: https://www.npmjs.com/package/pad-component
- npm.io page: https://npm.io/package/pad-component

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2012-09-26

## 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

---
_Source: https://npm.io/package/pad-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
