npm.io
1.1.1 • Published 2 years agoCLI

bonish-js

Licence
ISC
Version
1.1.1
Deps
1
Size
2 kB
Vulns
0
Weekly
0

Bonish-JS


Usage

Step 1:

Make sure Node.js and Npm is installed. If not visit here. To verify:

node --version
npm --version
Step 2:

Install the package bonish-js

npm install -g bonish-js
Step 3:

START BONISHING...

bonish path-to-your-file.js
Use 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.js

YES: That's IT...

Keywords