4.0.2 • Published 4 years ago

@vaughan189/my-awesome-calculator v4.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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.

4.0.2

4 years ago

4.0.1

4 years ago