1.0.3 • Published 3 years ago
kpmd-random-number v1.0.3
What is this Package
This is simple package created to know how to create npm package and how to publish to npm using following link How to create and publish npm package
Purpose of the package
Generate and return a random number for given input min and max values
Install Nodejs in the system
Create a test directory and run following commands
mkdir random-number-test
cd random-number-test
npm init
npm i kpmd-random-number
Create a test file
touch test.js
Copy this simple test code and paste it in the test.js file.
const random = require('kpmd-random-number');
random(400,600);