Ensure you have Node.js and npm installed on your system. You can check their installation by running:
node -v
npm -v
If they are not installed, download and install Node.js (npm comes bundled with it) from Node.js official website.
If you're starting a new project, create a new directory and initialize it:
mkdir my-project
cd my-project
npm init -y
This will create a package.json
file in your project directory.
Run the following command in your project directory:
npm install paalakpaneer
This command installs the paalakpaneer
package and adds it as a dependency in your package.json
file.
In your project, create a JavaScript file (e.g., app.js
) and require the paalakpaneer
package at the top of the file:
const paalakpaneer = require('paalakpaneer');
Now, you can use the info
function from the paalakpaneer
package:
console.log(paalakpaneer.info());
This will output: "This is so good !!!"
Run your JavaScript file using Node.js:
node app.js
You should see the output in the console.
Here's what your app.js
might look like:
// app.js
const paalakpaneer = require('paalakpaneer');
console.log(paalakpaneer.info()); // Outputs: "This is so good !!!"