eslint-plugin-command weekly downloads statistics
By antfu (15 listings) · npm · ESLint plugins
Comment-as-command for one-off codemod with ESLint
eslint-plugin-command has 784,756 recorded weekly downloads on npm, an increase of 10.2% over the past 30 days, ranking #317 of 3,247 tracked listings.
About eslint-plugin-command
eslint-plugin-command
Comment-as-command for one-off codemod with ESLint.
https://github.com/antfu/eslint-plugin-command/assets/11247099/ec401a21-4081-42d0-8748-9d0376b7d501
Introduction
ESLint Plugin Command is a special kind of ESLint plugin, that by default, does nothing. Instead of checking for code quality, it serves as a micro-codemod tool triggers by special comments on-demand, resuse the infrastructure of ESLint.
For example, one of the built-in commands, /// to-function allows you to convert a single arrow function expression to a function declaration.
/// to-function
const foo = async <T>(msg: T): void => {
console.log(msg)
}
Will be transformed to this when you hit save with your editor or run eslint . --fix. After executing the command, the comment will also be removed along with the transformation:
async function foo<T>(msg: T): void {
console.log(msg)
}
One more example that /// to-promise-all converts a sequence of await expressions to await Promise.all():
/// to-promise-all
const foo = await bar().then
const { get } = await import('lodash-es')
Will be transformed to:
const [
foo,
{ get },
] = await Promise.all([
bar(),
import('lodash-es'),
] as const)
Refer to the documentation for more details.
Sponsors
<p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.circles.svg"> <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.circles.svg' alt='Sponsors'/> </a> </p>License
MIT License © 2024-PRESENT Anthony Fu
<!-- Badges -->Description from the npm listing.
- eslint-plugin
- codemod
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm ESLint plugins plugins
All 20 eslint-plugin-command alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-command. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.