npm.io
4.0.2 • Published 6 years ago

@vaughan189/my-awesome-calculator

Licence
ISC
Version
4.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0

Number Calculator

A small library that adds 2 numbers

Installation

npm install @vaughan189/my-awesome-calculator

Usage

Typescript:
import { Calculator } from '@vaughan189/my-awesome-calculator';
const calculator = new Calculator();

calculator.add(2,2);

OR

Javascript:
const { Calculator } = require('@vaughan189/my-awesome-calculator');
const calculator = new Calculator();

calculator.add(2,2);

Output should be: 4

Running Unit Tests

npm run test

Running esLint

npm run lint

Running code format

npm run format

Running code coverage

npm run coverage

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Keywords