mirror of
https://github.com/soconnor0919/beenpad.git
synced 2026-02-05 00:06:40 -05:00
32 lines
455 B
Markdown
32 lines
455 B
Markdown
# beenpad
|
|
|
|
It's like `leftpad`, but it appends the string "been" to the left.
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm install @been0919/beenpad
|
|
```
|
|
|
|
## Usage
|
|
|
|
```javascript
|
|
import { beenpad } from '@been0919/beenpad';
|
|
|
|
// Pad to length 7
|
|
console.log(beenpad('foo', 7));
|
|
// Output: "beenfoo"
|
|
|
|
// Pad to length 8
|
|
console.log(beenpad('foo', 8));
|
|
// Output: "beenbfoo"
|
|
|
|
// Pad to length 11
|
|
console.log(beenpad('foo', 11));
|
|
// Output: "beenbeenfoo"
|
|
```
|
|
|
|
## License
|
|
|
|
ISC
|