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

markdown-note-manager

v1.0.5

Published

CLI tool to manage markdown notes

Downloads

358

Readme

markdown-note-manager

markdown-note-manager is a Node.js command-line tool designed to help you manage markdown notes easily from the terminal. With this tool, you can add, list, and read notes saved as markdown files, making it a great solution for quick note-taking and practicing file management in Node.js.

Features

  • Add Notes: Create new markdown notes with a title and content.
  • List Notes: View a list of all saved notes.
  • Read Notes: Display the content of any note directly in the terminal.
  • Simple and Quick: CLI tool that’s easy to install and start using.

Installation

You can use markdown-note-manager directly with npx, or install it globally.

Option 1: Run with npx

npx markdown-note-manager <command> [args]

Option 2: Install Globally

  • Install it globally to use as a regular command:
npm install -g markdown-note-manager
  • Then you can run:
markdown-note-manager <command> [args]

Usage

  • Commands

  • Add a Note: Creates a markdown file with the given title and content.

markdown-note-manager add "<title>" "<content>"
  • List Notes: Lists all markdown notes in the notes folder.
markdown-note-manager list
  • Read a Note: Displays the content of a specific note.
markdown-note-manager read "<title>"

Arguments

  • title: (Required) The title of the note, used as the filename.
  • content: (Required for add command) The content of the note.

Note: Ensure there is a folder named notes in your project’s root directory. This is where all notes will be saved. If the folder doesn’t exist, create it manually before running any commands.

Examples

  • Example 1: Add a New Note
npx markdown-note-manager add "MyFirstNote" "This is the content of my first note."
  • Example 2: List All Notes
npx markdown-note-manager list
  • Example 3: Read a Note
npx markdown-note-manager read "MyFirstNote"

How It Works

  1. The tool creates or reads files in a notes directory within your current working directory.
  2. Each note is saved as a markdown file (.md), making it easy to read or edit with other markdown-compatible tools.
  3. You’ll use Node.js’s fs/promises module for reading and writing files, giving you hands-on experience with asynchronous file handling.

Contributing

  • Contributions are welcome! Feel free to open an issue or submit a pull request if you have ideas for improving this tool.

License

This project is licensed under the MIT License. See LICENSE for more information.