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

great-dev

v1.0.4

Published

A CLI tool similar to nodemon that watches files for changes, clears cache, and hot reloads only changed files.

Downloads

24

Readme

great-dev 🚀

A powerful CLI tool for JavaScript and TypeScript development with hot reloading. 🔥

Features 🌟

  • 🔄 Hot reloading for JavaScript and TypeScript files
  • 🧰 Intelligent runtime detection and multi-runtime support
  • 🔍 Configurable file watching with debounce
  • 🚦 TypeScript compilation (file-based or in-memory)
  • 🧵 Worker thread support for improved performance
  • 🧠 Memory optimization
  • 📊 Detailed logging with multiple levels
  • 😄 Optional meme mode for fun output

Installation 📥

npm install -g great-dev

Basic Usage 🚀

great-dev -p ./src

This will start watching the ./src directory for changes and automatically reload your application.

Configuration ⚙️

You can configure great-dev using command-line options or a configuration file.

Command-line Options 🖥️

  • -p, --path <paths...>: Paths to watch for changes
  • -i, --ignore <patterns...>: Patterns to ignore
  • -w, --watch-delay <ms>: Debounce delay for file watching (ms)
  • -t, --ts-config <path>: Path to tsconfig.json
  • -l, --log-level <level>: Log level (info, debug, verbose)
  • -m, --meme-mode: Enable meme mode for fun output
  • --worker-threads <number>: Number of worker threads to use

Example:

great-dev -p ./src -i node_modules -w 500 -l debug --worker-threads 4

Configuration File 📄

Create a .greatdevrc.json file in your project root:

{
  "paths": ["./src"],
  "ignore": ["node_modules/**", "**/*.test.ts"],
  "watchDelay": 300,
  "tsConfigPath": "tsconfig.json",
  "logLevel": "info",
  "memeMode": false,
  "workerThreads": 2
}

Advanced Features 🧠

Logging Levels 📊

great-dev supports multiple logging levels:

  • info: Basic information (default)
  • debug: More detailed information for troubleshooting
  • verbose: Highly detailed logs for in-depth analysis

Set the log level using the -l, --log-level option or in the configuration file.

Worker Threads 🧵

Improve performance by utilizing worker threads. Specify the number of worker threads using the --worker-threads option or in the configuration file.

Memory Optimization 💾

great-dev automatically optimizes memory usage by periodically running garbage collection and adjusting the heap size limit.

Meme Mode 😄

Enable meme mode for fun ASCII art output using the -m, --meme-mode option or in the configuration file.

Troubleshooting 🔧

  • If you encounter any issues, check the console output for error messages.
  • Ensure that your project's dependencies are installed.
  • Verify that the specified paths and ignore patterns are correct.
  • Check if your tsconfig.json is correctly configured, especially the outDir setting.

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request.

License 📄

This project is licensed under the MIT License.