bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
41 lines (26 loc) • 860 B
Markdown
# zero-fill [](https://travis-ci.org/feross/zero-fill) [](https://npmjs.org/package/zero-fill)
### Zero-fill a number to the given size.

[](https://ci.testling.com/feross/zero-fill)
## install
```
npm install zero-fill
```
## usage
```js
var zeroFill = require('zero-fill')
zeroFill(4, 1) // '0001'
zeroFill(10, 55) // '0000000055'
zeroFill(1, 1) // '1'
```
Partial application:
```js
zeroFill(4)(1) // '0001'
```
Custom padding character:
```js
zeroFill(4, 55, ' ') // ' 55'
zeroFill(4, 500, ' ') // ' 500'
```
## license
MIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).