Skip to content

mobibyte/NPM_Package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hi! Looks like you've installed my package, Here's a rundown of how you can use this package

of course, you'll need to do this before you get started:

const 'name-of-your-variable' = require('mobimath')

Then to get started, make sure you do 'name-of-your-variable' . 'function-type'

List of functions:

  • addThis(any a, any b) : Gets any type of number, adds them, and returns sum

  • subtractThis(any a, any b) : Get any type of number, subtracts them, and returns sum

  • multiplyThis(any a, any b) : Gets any type of number, multiplies them, and returns sum

  • divideThis(any a, any b) : Gets any type of number, divides them, and returns sum

Examples of code:

const math = require('mobimath')

console.log(math.addThis(3,5)) prints 8

console.log(math.divideThis(2, 8)) prints 0.25

console.log(math.subtractThis(8, 8)) prints 0

console.log(math.multiplyThis(10, 4)) prints 40

About

Creating an NPM package tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published