Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
modern-node
Advanced tools
> All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard
Readme
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
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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).