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

dev-coffee-cli

v1.0.2

Published

A command-line tool for placing coffee orders and sending email confirmations.

Downloads

163

Readme

Dev-Coffee CLI ☕️

dev-coffee is a command-line interface (CLI) tool for managing and placing coffee orders. Built with Node.js, Inquirer, Mongoose, and Nodemailer, it allows users to register, browse available coffee products, place orders, and receive order confirmation emails—all from the terminal.

Features

  • User Registration: Register new users with their name, phone number, and email.
  • Product Browsing: View a list of available coffee products with names and prices.
  • Order Placement: Place orders directly through the CLI.
  • Order Confirmation: Receive email confirmation of each order, including order details.
  • Order History: View previous orders with timestamps.

Installation

To install dev-coffee, ensure you have Node.js installed, then run:

npm install -g dev-coffee-cli

Usage

After installation, you can start using the dev-coffee CLI by typing the following command:

dev-coffee

Follow the prompts to register, browse products, place orders, and view order history.

Commands

  • Start CLI: dev-coffee - Launches the interactive CLI menu.

Dependencies

  • chalk - For styled terminal output.
  • cli-table3 - For displaying tables in the terminal.
  • dotenv - For managing environment variables.
  • inquirer - For creating interactive CLI prompts.
  • mongoose - For database interactions.
  • nodemailer - For sending email notifications.

Example Usage

  1. Register a New User

    dev-coffee

    Follow the prompt to enter your name, phone number, and email.

  2. Browse Available Products

    • Choose "Browse Products" from the menu to view the coffee options.
  3. Place an Order

    • Choose "Place Order" and select the product and quantity. The order will be saved, and a confirmation email will be sent to you.
  4. View Orders

    • Choose "View Orders" to see your previous orders.

Development

To work on this project locally:

  1. Clone the repository:

    git clone https://github.com/your-username/dev-coffee-cli.git
    cd dev-coffee-cli
  2. Install dependencies:

    npm install
  3. Run the CLI:

    node index.js

Contributing

Contributions are welcome! If you have suggestions, improvements, or bug fixes, please open an issue or submit a pull request.

License

This project is licensed under the MIT License.


Contact

For questions or support, please contact mohammad arshad.


This README provides a solid foundation. Replace placeholders like your-username in the GitHub link and [email protected] with your actual details, and adjust as needed for your package!