1.0.1 • Published 9 years ago

parse-eng v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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