Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/onatm/right-pad
String right pad
https://github.com/onatm/right-pad
Last synced: 9 days ago
JSON representation
String right pad
- Host: GitHub
- URL: https://github.com/onatm/right-pad
- Owner: onatm
- Created: 2016-03-24T12:18:48.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-23T20:13:49.000Z (over 7 years ago)
- Last Synced: 2024-10-13T02:12:53.235Z (24 days ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## right-pad
I KNOW YOU'VE BEEN WAITING FOR THIS MOTHERF*CKINGLY GREAT MICRO LIBRARY!
IT IS ENTERPRISE READY, FULLY TESTED AND MIND BLOWING!
IF YOU ARE A RETARDED LEFT PADDER YOU SHOULD DEPEND ON THIS PACKAGE TOO!
**NEW** IF YOU ARE NOT SURE ABOUT CHAR AND FEEL LUCKY, JUST PASS true! IT WILL DO IT FOR YOU!
## INSTALL
```bash
$ npm install onatm/rightpad
```## USAGE
```js
rightpad = require('rightpad')rightpad('foo', 5)
// => "foo "rightpad('foobar', 6)
// => "foobar"rightpad(1, 2, 0)
// => "10"rightpad('foobar', 8, true)
// => "foobarGG"
```## SPECIAL NOTE FOR KIK
`fuck you <3`