Skip to content

Commit

Permalink
Update README and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
izolate committed Apr 8, 2021
1 parent 16696f6 commit 4f8ac81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.5.1] - 2021-04-07
### Changed
- Update README code example

## [3.5.0] - 2020-12-31
### Fixed
- Revert to default export in millify.js
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ See `millify --help` for options.
#### `millify(number, options)`

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

millify(2500);
// 2.5K
// For CommonJS: `const { millify } = require('millify');`

millify(2500); // 2.5K

millify(1024000, {
precision: 3,
Expand Down

0 comments on commit 4f8ac81

Please sign in to comment.