ohms-law

1.0.2 • Public • Published

ohms-law

NPM version build status js-standard-style

Ohm's Law is made from 3 mathematical equations that shows the relationship between electric voltage, current and resistance.

Installation

% npm install ohms-law

Usage

var ohmsLaw = require('ohms-law')
 
var voltage = ohmsLaw.getVoltage(0.01, 150)
// 1.5 (volts)
 
var resistance = ohmsLaw.getResistance(1.5, 0.01)
// 150 (ohms)
 
var current = ohmsLaw.getCurrent()
// 0.01 (amps)

Tests

% npm test

/ohms-law/

    Package Sidebar

    Install

    npm i ohms-law

    Weekly Downloads

    4

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • chrisbuttery