parse-eng

1.0.1 • Public • Published

parse-eng

Library for parsing engineering notation numbers

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install parse-eng --save

Examples of use

var parseEng = require('parse-eng');
 
parseEng("123");// 123
 
parseEng("12k");// 12000
 
parseEng("-1k2");// -1200
 
parseEng("15n");// 0.000000015
 

Tests

npm install
npm test

Dependencies

  • debug: small debugging utility

Dev Dependencies

  • chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
  • chai-as-promised: Extends Chai with assertions about promises.
  • mocha: simple, flexible, fun test framework
  • sinon: JavaScript test spies, stubs and mocks.
  • sinon-chai: Extends Chai with assertions for the Sinon.JS mocking framework.

License

MIT

Generated by package-json-to-readme

/parse-eng/

    Package Sidebar

    Install

    npm i parse-eng

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • christhebaron