https://github.com/dottorblaster/enlarge
Dead simple string padding module with a funny name.
https://github.com/dottorblaster/enlarge
Last synced: 5 months ago
JSON representation
Dead simple string padding module with a funny name.
- Host: GitHub
- URL: https://github.com/dottorblaster/enlarge
- Owner: dottorblaster
- Created: 2016-03-24T16:49:21.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-04T15:27:54.000Z (over 10 years ago)
- Last Synced: 2024-12-31T10:14:43.892Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# enlarge [](https://badge.fury.io/js/enlarge)
Dead simple string padding module with a funny name.
Most important feature: I'm not taking this down from npm (except for a DMCA takedown from PornHub :-D)
## Installation
```
npm install enlarge
```
## Examples
```
var enlarge = require('enlarge');
var test = 'stuff';
enlarge(test, 7); // gives back ' stuff'
enlarge(test, 7, '@') // gives back '@@stuff'
```
## A bit of history
Read [this](http://blog.npmjs.org/post/141577284765/kik-left-pad-and-npm).
I just wanted to write my own implementation of a string padding module for NodeJS.