@sat_npm/random-number-generator
v2.0.0
Published
random-number-generator
Downloads
6
Readme
@sat_npm/random-number-generator
[code]
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
[/code]
Usage of NPM
[code]
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
[/code]
In the test.js
[code]
const randomNumberGenerator = require('@sat_npm/random-number-generator'); console.log(randomNumberGenerator(5, 10));
[/code]