operation-devsulaiman
v1.0.5
Published
It gives you a function which will return a value with given operator (the operator which you have given as paremeter)
Downloads
2
Maintainers
Readme
#Operation
1: Four specific operations which we do in our daily life.
i.e +,-,*,/
, you can use function name OperateIt
.
2: Returns a result value with given parameter.
3: Three paramenters are required.
i.e num1, num2 and operator[string].
#How to create npm package
1: Create package.json file
i.e use npm init
2: Give a unique name to your package
i.e in your package.json file change the name
property.
3: Login to your NPM Account.
i.e use Terminal and type npm login
.
4: Publish your package.
i.e use Terminal and change directory to your package directory
and then type npm publish
.
#How to use it
const { OperateIt } = require("operation-devsulaiman");
console.log(OperateIt(2, 3, "+"));