1.1.1 • Published 2 years ago
bonish-js v1.1.1
Usage
Step 1:
Make sure Node.js and Npm is installed. If not visit here. To verify:
node --version
npm --versionStep 2:
Install the package bonish-js
npm install -g bonish-jsStep 3:
START BONISHING...
bonish path-to-your-file.jsUse the following for an example:
Create a file named factorial.js and add following content.
function calculateFactorial(n) {
if (n === 0) {
return 1;
}
return n * calculateFactorial(n - 1);
}
const number = 5;
const result = calculateFactorial(number);
console.log(`The factorial of ${number} is ${result}`);And now in your terminal,
bonish ./factorial.jsYES: That's IT...