timestring-notsep
Tiny wrapper around timestring (parser for human-readable durations) that fails loudly if you accidentially use a thousand separator.
Last updated 2 years ago by mk-pmb .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install timestring-notsep 
SYNC missed versions from official npm registry.

timestring-notsep

Tiny wrapper around timestring (parser for human-readable durations) that fails loudly if you accidentially use a thousand separator.

Use timestring more robustly: Some countries use , and . swapped, with dot as their thousand separator and comma for the fractional part.

To avoid config accidents, this module enforces the use of dot for the fractional part and no thousand separators. It can't help with inherently ambiguous cases like 1.234, but at least it prevents some obvious mistakes like 1,25 being parsed as 125.

 

License

ISC

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |