Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

modern-node

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modern-node

> All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard

  • 2.9.6
  • beta
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
increased by5129.17%
Maintainers
1
Weekly downloads
 
Created
Source

Modern Node Unix CI Modern Node

All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard

  • 🃏 Testing with Jest
  • 💅 Formatting with prettier
  • 🌟 Linting with eslint configured on standard rules
  • 🐶 Automatically runs precommit script from package.json from when committing code

Installation (new projects)

yarn create modern-node my-module

If you're using npm: npm init modern-node my-module.

Installation (existing projects)

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"
  }
}

Usage

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.

License

MIT

FAQs

Package last updated on 03 Aug 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc