{"id":13455269,"url":"https://github.com/sheerun/modern-node","last_synced_at":"2025-10-26T18:42:59.231Z","repository":{"id":9120055,"uuid":"60906885","full_name":"sheerun/modern-node","owner":"sheerun","description":"All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard","archived":false,"fork":false,"pushed_at":"2023-01-06T02:09:42.000Z","size":1107,"stargazers_count":242,"open_issues_count":18,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-13T21:56:29.236Z","etag":null,"topics":["es6","jest","node","prettier","standard"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sheerun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-11T12:51:23.000Z","updated_at":"2023-10-31T06:03:51.000Z","dependencies_parsed_at":"2023-01-11T17:33:00.777Z","dependency_job_id":null,"html_url":"https://github.com/sheerun/modern-node","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fmodern-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fmodern-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fmodern-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sheerun%2Fmodern-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sheerun","download_url":"https://codeload.github.com/sheerun/modern-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994121,"owners_count":21030050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["es6","jest","node","prettier","standard"],"created_at":"2024-07-31T08:01:03.227Z","updated_at":"2025-10-26T18:42:59.118Z","avatar_url":"https://github.com/sheerun.png","language":"JavaScript","readme":"# ![Modern Node](http://i.imgur.com/PqQAqwO.png) [![Unix CI](https://img.shields.io/travis/sheerun/modern-node/master.svg)](https://travis-ci.org/sheerun/modern-node) [![Modern Node](https://img.shields.io/badge/modern-node-9BB48F.svg)](https://github.com/sheerun/modern-node)\n\n\u003e All-in-one development toolkit for creating node modules with Jest, Prettier, ESLint, and Standard\n\n- 🃏 Testing with [Jest](https://facebook.github.io/jest/)\n- 💅 Formatting with [prettier](https://prettier.io/)\n- 🌟 Linting with [eslint](https://eslint.org/) configured on [standard](https://standardjs.com/) rules\n- 🐶 Automatically runs `precommit` script from `package.json` from when committing code\n\n## Installation (new projects)\n\n```\nyarn create modern-node my-module\n```\n\n\u003e If you're using [npm](https://www.npmjs.com/): `npm init modern-node my-module`.\n\n## Installation (existing projects)\n\n```\nyarn add --dev modern-node\n```\n\n\u003e If you're using [npm](https://www.npmjs.com/): `npm install --save-dev modern-node`.\n\nNow you add appropriate scripts to your `package.json`:\n\n```\n{\n  \"scripts\": {\n    \"test\": \"modern test\",\n    \"format\": \"modern format\",\n    \"lint\": \"modern lint\",\n    \"precommit\": \"modern precommit\"\n  }\n}\n```\n\n## Usage\n\nTest your project with Jest (watch mode, unless running on CI server):\n\n```\nmodern test\n```\n\nFormat all files in the project with [prettier-standard](https://github.com/sheerun/prettier-standard) (add `--help` for more options):\n\n```\nmodern format             # format all files\nmodern format --changed   # format only changed files\nmodern format '**/*.js'   # format only selected files\n```\n\nFormat and files in the project (add `--help` for more options):\n\n```\nmodern lint             # lint all files\nmodern lint --changed   # lint only changed files\nmodern lint '**/*.js'   # lint only selected files\n```\n\nFormat and lint staged changes (useful to put into `precommit` script):\n\n```\nmodern precommit\n```\n\nFor now linted extensions can be configured with `lint-staged` option in `package.json`.\n\n## License\n\nMIT\n","funding_links":[],"categories":["Resources","JavaScript","node","资源"],"sub_categories":["Miscellaneous","杂项","其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheerun%2Fmodern-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsheerun%2Fmodern-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsheerun%2Fmodern-node/lists"}