npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dev_sajid/calculator-cli

v1.0.0

Published

একটি সহজ **Command Line Calculator Application** যা Node.js ব্যবহার করে তৈরি করা হয়েছে। Terminal থেকে Addition, Subtraction, Multiplication এবং Division করা যায়।

Readme

🧮 Calculator CLI

একটি সহজ Command Line Calculator Application যা Node.js ব্যবহার করে তৈরি করা হয়েছে। Terminal থেকে Addition, Subtraction, Multiplication এবং Division করা যায়।


🚀 Features

  • Addition (+)
  • Subtraction (-)
  • Multiplication (×)
  • Division (÷)
  • Command Line Arguments ব্যবহার
  • Beginner Friendly Project

📁 Project Structure

calculator-cli/
│
├── app.js
└── README.md

📦 Requirements

  • Node.js Installed

Node.js Version Check:

node -v

▶️ Run Project

Addition

node app.js add 10 20

Output:

Result: 30

Subtraction

node app.js sub 20 5

Output:

Result: 15

Multiplication

node app.js mul 5 4

Output:

Result: 20

Division

node app.js div 20 2

Output:

Result: 10

🧠 ব্যবহৃত Concepts

process.argv

Command Line থেকে Data গ্রহণ করার জন্য ব্যবহার করা হয়।

উদাহরণ:

node app.js add 10 20

এখানে:

process.argv[2] // add
process.argv[3] // 10
process.argv[4] // 20

Functions

প্রতিটি Operation আলাদা Function দিয়ে করা যায়।

function add(a, b) {
  return a + b;
}

Number Conversion

Command Line থেকে আসা Data String হিসেবে আসে।

Number("10")

অথবা

parseInt("10")

🎯 Learning Goals

এই Project শেষ করার পর তুমি শিখবে:

  • Node.js Basics
  • Command Line Arguments
  • Functions
  • Conditional Statements
  • Type Conversion
  • Project Structure

🔥 Future Improvements

নিচের Features গুলো নিজে যোগ করার চেষ্টা করো:

Power

node app.js power 2 3

Output:

Result: 8

Modulus

node app.js mod 10 3

Output:

Result: 1

Square Root

node app.js sqrt 25

Output:

Result: 5

Help Command

node app.js help

Output:

Available Commands:
add
sub
mul
div
power
mod
sqrt

📚 Author

এই Project টি Node.js Beginners দের জন্য তৈরি করা হয়েছে যাতে তারা Command Line Applications তৈরি করা শিখতে পারে।