resistor-calculator
v0.1.0
Published
Command line module for calculating resistors
Downloads
3
Readme
resistor-calculator
Command line module for calculating resistors
Installation
Download node at nodejs.org and install it, if you haven't already.
npm install resistor-calculator --global
Examples of use
$ resistor pick 123k
Closest value: 120000, Stripes: Brown Red Yellow Gold
# Pick a different tolerance (5% default)
$ resistor pick 56M78 -t=0.1%
Closest value: 56000000, Stripes: Green Violet Violet
# Pick a different series (E6/12/34 currently supported, E12 default)
$ resistor pick 123k -s=E6
Closest value: 100000, Stripes: Brown Green Gold
# Pick a different amount of bands (4/5 currently supported, 4 default)
$ resistor pick 12.3k -b=5
Closest value: 12000, Stripes: Brown Red Black Red Gold
Tests
npm install
npm test
Dependencies
- debug: small debugging utility
- inquirer: A collection of common interactive command line user interfaces.
- mathjs: Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser and offers an integrated solution to work with numbers, big numbers, complex numbers, units, and matrices.
- minimist: parse argument options
- parse-eng: Library for parsing engineering notation numbers
Dev Dependencies
None
License
ISC
Generated by package-json-to-readme