Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

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

install

npm i parse-eng

Downloadsweekly downloads

0

version

1.0.1

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability