1.0.1 • Published 1 year ago
mathcalculation-with-mocha-test-case-amit-tyagi v1.0.1
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Installation
To install and set up the library, run:
$ npm i mathcalculation-with-mocha-test-case-amit-tyagi
Testing
To install and set up the library, run:
$ npm run test
Usage
For Getting the Side Lenght, Surface Area and Volume
const math = require('mathcalculation-with-mocha-test-case-amit-tyagi');
const number = 5;
const mathtest = new math(number);
console.log(`The getSideLength of ${number} is: ${mathtest.getSideLength()}`);
console.log(`The getSurfaceArea of ${number} is: ${mathtest.getSurfaceArea()}`);
console.log(`The Volume of ${number} is: ${mathtest.getVolume()}`);