Skip to content

vtfg/calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calc

GitHub top language Repository size GitHub last commit Repository issues GitHub

A npm package that calculates two numbers.

How to use    |    Building    |    Technologies   |    License

❓ 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

# 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

🚀 Technology

This project was developed as a test, i had curiosity on how to make a npm package and there it is.

📝 License

This project is under the MIT license. See the LICENSE for more information.


About

📦 Simple npm package that calculates two numbers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published