- tweak the flow a bit so the
separator
anddecimal
value are all in an array which is turned into a string viajoin('')
. so, all at once the parts are turned into the final string. - added some local scopes to the format.
- changed how it calculates where to start putting separators.
- switched a while-loop with an increment in the block to a for-loop with the increment in its loop definition.
- fixed a bug in the
benchmark/index.js
file when using the--delta
option. - added more (longer) numbers to the tests
2.0.2 - 2021/04/28
- update dev dependencies
- add 2021 to copyright
- reformatted var usage in test/lib/index.js and added new test showing a bug
- fixed bug when a number input was given for a
decimalChar
other than'.'
. - added node 14 to testing
- switched from tape to tap for testing and removed istanbul
- added
.nyc_output
to git ignore - updated travis config to use a single VM and use nave to run tests with multiple node versions.
- add
npm install
to command list in docs/benchmark.md.
2.0.1 - 2019/04/19
- update dev dependencies
- add 2018 and 2019 to copyright
- remove lcov only coverage script
- add nave dev dependency and use it in test scripts for node 4-12 (evens)
- use const/let instead of var
- use more descriptive variable names
- reformat a bit
- update benchmark script to report PID and ask before starting so the process can be set to a high priority
- revised implementation
- supports decimals
- more test cases
- updated travis with modern node versions
- added badges to README
- updated README content with change info, new
bindWith()
, benchmark info. - added code coverage
- dropped 'standard' lint
- added benchmarking
- added a document showing the benchmark output (docs/benchmark.md)
- Use isFinite instead of Number.isFinite for improved browser compatibility
- Initial release