Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Format big numbers
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
hooks
lib
test
.editorconfig
.eslintignore
.eslintrc
.gitignore
.jshintignore
.jshintrc
.jslintrc
.travis.yml
Gemfile
Gruntfile.js
Guardfile
Guardfile-lint
README.md
package.json

README.md

build status

binfix - Format big numbers

binfix represents large numbers in a more concise form.

EXAMPLE

$ node
> var binfix = require("binfix");
> binfix.format(1000000001);
'1B'

HOMEPAGE

https://github.com/mcandre/node-binfix

NPM

https://www.npmjs.com/package/binfix

REQUIREMENTS

Optional

DEVELOPMENT

Test

Ensure the logic is correct:

$ grunt test

Guard can automatically run testing when the code changes:

$ bundle
$ guard -G Guardfile
...

Lint

Keep the code tidy:

$ grunt lint

Spell Check

$ grunt aspelllint
...

Local CI

Guard can automatically lint when the code changes:

$ bundle
$ guard -G Guardfile-lint
...

Git Hooks

See hooks/.

Something went wrong with that request. Please try again.