
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
modern-node
Advanced tools
> All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
precommit
script from package.json
from when committing codeyarn create modern-node my-module
If you're using npm:
npm init modern-node my-module
.
yarn add --dev modern-node
If you're using npm:
npm install --save-dev modern-node
.
Now you add appropriate scripts to your package.json
:
{
"scripts": {
"test": "modern test",
"format": "modern format",
"lint": "modern lint",
"precommit": "modern precommit"
}
}
Test your project with Jest (watch mode, unless running on CI server):
modern test
Format all files in the project with prettier-standard (add --help
for more options):
modern format # format all files
modern format --changed # format only changed files
modern format '**/*.js' # format only selected files
Format and files in the project (add --help
for more options):
modern lint # lint all files
modern lint --changed # lint only changed files
modern lint '**/*.js' # lint only selected files
Format and lint staged changes (useful to put into precommit
script):
modern precommit
For now linted extensions can be configured with lint-staged
option in package.json
.
MIT
FAQs
> All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
The npm package modern-node receives a total of 17 weekly downloads. As such, modern-node popularity was classified as not popular.
We found that modern-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.