eslint-plugin-node-import weekly downloads statistics
By kytta · npm · ESLint plugins
Disallow imports of built-in Node.js modules without the `node:` prefix
eslint-plugin-node-import has 50,559 recorded weekly downloads on npm, an increase of 51.5% over the past 30 days, ranking #779 of 3,247 tracked listings.
About eslint-plugin-node-import
eslint-plugin-node-import
Disallow imports of built-in Node.js modules without the node: prefix
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-node-import:
npm install eslint-plugin-node-import --save-dev
Usage
Flat config (eslint.config.js)
Preset config
Extend this plugin's recommended config:
const nodeImport = require('eslint-plugin-node-import');
module.exports = [
...nodeImport.configs["flat/recommended"],
// your config
]
Manual
Add node-import to the plugins section of your configuration and configure the (only) rule under the rules section:
const nodeImport = require('eslint-plugin-node-import');
module.exports = [
{
plugins: {"node-import": nodeImport},
rules: {
"node-import/prefer-node-protocol": "error"
}
}
]
Legacy config (.eslintrc.*)
Preset config
Extend this plugin's recommended config:
{
"extends": ["plugin:node-import/recommended"]
}
Manual
Add node-import to the plugins section of your .eslintrc configuration file and configure the (only) rule under the rules section:
{
"plugins": ["node-import"],
"rules": {
"node-import/prefer-node-protocol": 2
}
}
Rules
<!-- begin auto-generated rules list -->💼 Configurations enabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 💼 | 🔧 |
|---|---|---|---|
| prefer-node-protocol | Prefer using the node: protocol when importing Node.js builtin modules. | ✅ | 🔧 |
Credits
This plugin is a composite of two different custom ESLint rules:
- @alex-kinokon's
eslint-import-require-node-prefixfrom this GitHub Gist - Sindre Sorhus'
prefer-node-protocolfrom eslint-plugin-unicorn
Licence
© 2023 Nikita Karamov
Licensed under the ISC License
This project is hosted on GitHub: https://github.com/kytta/eslint-plugin-node-import.git
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
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-node-import 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-node-import. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.