@putout/plugin-apply-numeric-separators
putout plugin adds ability apply numeric separators
Last updated 6 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @putout/plugin-apply-numeric-separators 
SYNC missed versions from official npm registry.

@putout/plugin-apply-numeric-separators NPM version

To improve readability for numeric literals, underscores (_) can be used as separators.

(c) MDN

🐊Putout plugin apply numeric separators. Merged to @putout/plugin-math.

Install

npm i @putout/plugin-apply-numeric-separators

Rule

{
    "rules": {
        "apply-numeric-separators": "on"
    }
}

❌ Example of incorrect code

const t = 10000000;

✅ Example of correct code

const t = 10_000_000;

License

MIT

Current Tags

  • 1.2.2                                ...           latest (4 years ago)

7 Versions

  • 1.2.2                                ...           4 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Total 8
Today 0
This Week 0
This Month 8
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (11)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE