Skip to content

Commit

Permalink
Update README and lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
izolate committed Apr 8, 2021
1 parent 11ef007 commit 16696f6
Show file tree
Hide file tree
Showing 2 changed files with 5,810 additions and 6 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,27 @@ See `millify --help` for options.
#### `millify(number, options)`

```js
const millify = require('millify')
const { millify } = require('millify');

millify(2500)
millify(2500);
// 2.5K

millify(1024000, {
precision: 3,
lowercase: true
})
});
// 1.024m

millify(39500, {
precision: 2,
decimalSeparator: ','
})
});
// 3,95K

millify(1440000, {
units: ['B', 'KB', 'MB', 'GB'],
space: true,
})
});
// 1.44 MB
```

Expand Down
Loading

0 comments on commit 16696f6

Please sign in to comment.