2.0.0 • Published 5 years ago
@sat_npm/random-number-generator v2.0.0
@sat_npm/random-number-generator
Create the project directory
mkdir random-number-generator
Change into the project directory
cd random-number-generator
Initialise an NPM package
npm init Further reading Adding a README to the project on NPM: https://docs.npmjs.com/about-package-readme-files
Versioning of NPM packages: https://docs.npmjs.com/about-semantic-versioning
Private NPM packages: https://docs.npmjs.com/creating-and-publishing-private-packages
npm publish --access=public
Usage of NPM
Create a test directory
mkdir random-number-test
Change into the directory
cd random-number-test
Install the package
Create a test file
touch test.js
In the test.js
const randomNumberGenerator = require('@sat_npm/random-number-generator'); console.log(randomNumberGenerator(5, 10));