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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dukaan

v1.0.3

Published

A local key:value store.

Downloads

221

Readme

Dukaan - Hindi flavoured CLI Key-Value Store

Dukaan is a fun and intuitive command-line utility to store, retrieve, delete, and display key-value pairs. It adds a unique twist by offering all feedback and instructions in Hindi.


✨ Features

  • Add Key-Value Pairs: Save data with a unique key in persistent storage.
  • Retrieve Values: Access stored values using their associated keys.
  • Delete Keys: Remove unwanted keys and their values.
  • List All Keys: Display all the stored keys at once.
  • Validation Rules: Prevents keys longer than 20 characters and values longer than 100 characters.
  • Persistent Storage: Data is stored in SQLite for session persistence.

📦 Installation

Install Dukaan globally using npm:

npm install -g dukaan

🚀 Dukaan Commands & Usages

📖 1. View Help

Displays all available commands and their usage instructions.

Command:

dukaan sikhao

Example Output:

Sahi use karne ka tareeka:
  dukaan andar <key> <value>  # Ek mast key-value set karo
  dukaan baahar <key>         # Apni key ka value dekh lo
  dukaan dikhao               # Saare keys dekh lo, kya pata kuch chhupa ho!
  dukaan fenko <key>          # Agar koi key kaam ka nahi hai, to usse fenko!

✍️ 2. Add a Key-Value Pair

Stores a key-value pair in the database. Both key and value are required.

Command:

dukaan andar <key> <value>

Example:

dukaan andar country Bharat

Output:

Chaabi 'country' aur uska mulya jodd diya hai

🔑 3. Retrieve a Value by Key

Fetches the value associated with a specific key. The key must exist in the database.

Command:

dukaan baahar <key>

Example:

dukaan baahar country

Output:

country:Bharat

If the key does not exist:

Chaabi dukaan mein nahi mili

🗂️ 4. Show All Stored Keys

Displays a list of all stored keys in the database.

Command:

dukaan dikhao

Example:

dukaan dikhao

Output:

Chaabiyan:
- country
- email

If no keys are stored:

Koi Chaabi nahi hai dukaan mein.

🗑️ 5. Delete a Key

Removes a key and its associated value from the database.

Command:

dukaan fenko <key>

Example:

dukaan fenko username

Output:

Chaabi 'username' aur uska mulya hata diya gaya.

If the key does not exist:

Chaabi nahi mili