packagemoduleforaddition v1.0.11
PackageModuleForAddition
This module contains a simple functionality of adding up two numbers passed as parameters to its function AddNumber.
Download and Install via Node Package Manager(NPM)
To install the module on your system, open your cmd/terminal and punch in
npm i packagemoduleforaddition
OR
npm install packagemoduleforaddition
Usage
To use this module, open your favourite code editor, say, Visual Studio Code and
Create a directory with
mkdir directoryName
Move inside this directory with
cd directoryName
To generate a package.json file that will automatically keep records of all the dependencies installed, type in the terminal
npm init
To download packagemoduleforaddition, type in the terminal
npm install packagemoduleforaddition
OR
npm i packagemoduleforaddition
Now create a file named say app.js by typing
touch app.js
Open this file from the explorer in VSCode, and write in
const ob = require("packagemoduleforaddition")
console.log(ob.AddNumber(4, 5))
Run this code in the terminal by writing
node app.js
Voila! Your output in the terminal will be
9