@vitogd/calc
v1.1.0
Published
Simple npm package that calculates two numbers
Downloads
8
Readme
:question: How to use?
Installation:
$ npm install @vitogd/calc
Declaration on javascript:
const calc = require("@vitogd/calc");
Usage:
const sum = calc.sum(2, 2); // 4
const sub = calc.sub(4, 2); // 2
const mult = calc.mult(3, 2); // 6
const div = calc.div(6, 2); // 3
:building_construction: Building
# clone the repository
$ git clone https://github.com/vitogd/calc.git
# enter on directory
$ cd calc
# install node.js native addon build tool
$ npm install -g node-gyp
# build
$ npm run build # or node-gyp build
:rocket: Technology
This project was developed as a test, i had curiosity on how to make a npm package and there it is.
- If you want to know more about C++ addons: Node.js C++ addons
:memo: License
This project is under the MIT license. See the LICENSE for more information.