Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binfix

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binfix

Format big numbers

  • 0.0.4
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

build status

binfix - Format big numbers

binfix represents large numbers in a more concise form.

EXAMPLES

$ bin/binfix -f 1000
1K
$ bin/binfix -p 1K
1000

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

HOMEPAGE

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

NPM

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

REQUIREMENTS

  • Node.js 0.8+

Optional

DEVELOPMENT

Test

Ensure the logic is correct:

$ grunt test

Guard can automatically run testing when the code changes:

$ bundle
$ guard -G Guardfile
...

CLI

Ensure the CLI works as expected:

$ grunt cucumber
Feature: Run example tests

  Scenario: Running example tests            # features/run_example_tests.feature:3
    Given the program has finished           # features/step_definitions/steps.rb:1
    Then the output is correct for each test # features/step_definitions/steps.rb:5

1 scenario (1 passed)
2 steps (2 passed)
0m0.142s

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/.

FAQs

Package last updated on 04 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc