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

modclean-benchmark

v2.0.0

Published

Benchmarking utility for ModClean

Downloads

9

Readme

ModClean Benchmark Utility

npm version NPM Dependencies NPM Downloads GitHub license GitHub issues

Quickly run a benchmark test for ModClean. I started to get tired of manually running benchmark tests, so I threw together this small Node script that does it for you.

Note that version 2.0.0 is for ModClean 2.x, if you want to benchmark the old version, use version 1.0.0 of this module.

Install

npm install modclean-benchmark -g

Usage

Once installed globally, you will have access to modclean-benchmark through command line.

modclean-benchmark [options]

Options

These are the available flags/options for modclean-benchmark.

-n, --patterns [patterns]

Specify which pattern plugins/rules to use. Separate multiple groups by a single comma (no spaces). Default is default:safe. Example: modclean-benchmark -n default:safe,default:caution

-m, --modules [modules]

Specify which npm modules to use for the benchmark. Multiple modules should be separated by a single comma (no spaces). Default is express,lodash,moment,async. Example: modclean-benchmark -m express,underscore,numeral,fs-extra

-a, --additional-patterns [patterns]

Specify additional custom glob patterns to use along with the patterns that are loaded from -n.
Example: modclean-benchmark --additional-patterns="*.html,contributing*"

-I, --ignore [patterns]

Specify glob patterns to ignore while searching for files. Useful if a prexisting pattern matches a module name you do not want removed.
Example: modclean-benchmark --ignore="npm-license-lookup"

-s, --case-sensitive

Enable case sensitive checking when locating files based on the patterns.

--no-dirs

Disable removal of directories.

--no-dotfiles

Exclude dot files from being removed.

-k, --keep-empty

Prevents removal of empty directories.

--no-log

Do not create a log file when the process is complete.

--no-clean

Turn off post-modclean cleanup process. By default, this script will cleanup the modules downloaded from npm after the process is complete and the benchmarks are ran, if you would rather keep the files, use this flag.

Submitting Benchmarks

Feel free to submit benchmark results in the proper format in the ModClean repository by creating a pull request.

License

Licensed under the MIT License. See LICENSE in the repository for the full text.