resistor-data

Tools to calculate resistor data.


Keywords
resistors, electronics
License
ISC
Install
npm install resistor-data@1.1.1

Documentation

Resistor Data NPM version Build status

A simple module to calculate properties for resistors.

  • convert resistor bands to standard resistor notation
  • convert standard resistor notation to resistor bands
  • convert a number to standard resistor notation
  • convert standard resistor notation to a number

Install Resistor Data:

npm install resistor-data
var resistorData = require('resistor-data');

resistorData.bandsToNotation(['red', 'yellow', 'black', 'brown', 'brown'], 5); //['2k4', 1]
resistorData.notationToBands(['2k4', 1], 5); //['red', 'yellow', 'black', 'brown', 'brown']

resistorData.notationToValue('2k4'); //2400
resistorData.valueToNotation(2400); //'2k4'