{"id":20560546,"url":"https://github.com/iamyoki/better-scripts","last_synced_at":"2025-08-20T20:32:11.148Z","repository":{"id":53025564,"uuid":"521166197","full_name":"iamyoki/better-scripts","owner":"iamyoki","description":"➤_ A better way to organize your npm scripts","archived":false,"fork":false,"pushed_at":"2022-08-26T16:50:01.000Z","size":10638,"stargazers_count":67,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-09T02:26:56.977Z","etag":null,"topics":["better-scripts","cli","nodejs","npm","npm-scripts"],"latest_commit_sha":null,"homepage":"better-scripts.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iamyoki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-04T07:25:39.000Z","updated_at":"2025-05-17T06:39:35.000Z","dependencies_parsed_at":"2022-08-13T02:10:52.383Z","dependency_job_id":null,"html_url":"https://github.com/iamyoki/better-scripts","commit_stats":null,"previous_names":["iamyoki/begin-script"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/iamyoki/better-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyoki%2Fbetter-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyoki%2Fbetter-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyoki%2Fbetter-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyoki%2Fbetter-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamyoki","download_url":"https://codeload.github.com/iamyoki/better-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamyoki%2Fbetter-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271378680,"owners_count":24749192,"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","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["better-scripts","cli","nodejs","npm","npm-scripts"],"created_at":"2024-11-16T03:55:01.762Z","updated_at":"2025-08-20T20:32:10.172Z","avatar_url":"https://github.com/iamyoki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr /\u003e\n\n\u003ch1 align=\"center\"\u003e➤_ Better Scripts\u003c/h1\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003eA better way to organize your npm scripts\u003c/strong\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://better-scripts.vercel.app/\" target='_blank'\u003eSee \u003cu\u003ebetter-scripts.vercel.app\u003c/u\u003e →\u003c/a\u003e\u003c/p\u003e\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./static/example2.png\" alt=\"example\" width=\"460px\" /\u003e\n\u003c/p\u003e\n\n*   [Installation](#installation)\n*   [Usage](#usage)\n    *   [Basic setup](#basic-setup)\n    *   [Add script description](#add-script-description)\n    *   [Script as object](#script-as-object)\n    *   [Separate configuration file](#separate-configuration-file)\n    *   [Specified configuration file](#specified-configuration-file)\n*   [Command line](#command-line)\n    *   [Default](#default)\n    *   [Run](#run)\n    *   [List](#list)\n*   [Advanced](#advanced)\n*   [Contributors](#contributors)\n*   [License](#license)\n\n## Installation\n\nInstall with yarn\n\n```sh\nyarn add better-scripts -D\n```\n\nOr install with npm\n\n```sh\nnpm install better-scripts --save-dev\n```\n\nOr install with pnpm\n\n```sh\npnpm add better-scripts -D\n```\n\nOr use npx for one-time use\n\n```sh\nnpx better-scripts\n```\n\n## Usage\n\n### Basic setup\n\nSimply run `npx better-scripts` will read your existing scripts, let's give it a try at first\n\n```sh\nnpx better-scripts\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./static/example-at-first.png\" alt=\"example-at-first\" width=\"400px\"\u003e\n\u003c/p\u003e\n\nNow, let's move all `scripts` into `better-scripts` and add only one `\"scripts\": \"better-scripts\"` in `scripts`\n\n```json\n{\n  \"scripts\": {\n    \"scripts\": \"better-scripts\"\n  },\n  \"better-scripts\": {\n    \"dev\": \"react-scripts start\",\n    \"build\": \"react-scripts build\",\n    \"test\": \"react-scripts test\"\n  }\n}\n```\n\nThen run `yarn scripts` will read your scripts from `better-scripts`\n\n```sh\nyarn scripts\n```\n\n### Add script description\n\nSecond value as description in array form\n\n```json\n{\n  \"better-scripts\": {\n    \"dev\": [\"react-scripts start\", \"Start a development server\"]\n  }\n}\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./static/example-yarn.png\" alt=\"example-at-first\" width=\"400px\"\u003e\n\u003c/p\u003e\n\n### Script as object\n\nYou can add more properties in object form\n\n```json\n{\n  \"better-scripts\": {\n    \"dev\": {\n      \"alias\": \"🧑🏻‍💻 Dev\",\n      \"command\": \"react-scripts start\",\n      \"desc\": \"Start a development server\"\n    }\n  }\n}\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./static/example-alias.png\" alt=\"example-at-first\" width=\"400px\"\u003e\n\u003c/p\u003e\n\n### Separate configuration file\n\nYou can write your \"better-scriprts\" out of `package.json`\n\nCreate a `scripts.json` file in the root directory\n\n```json\n{\n  \"dev\": \"react-scripts start\",\n  \"build\": \"react-scripts build\",\n  \"test\": \"react-scripts test\"\n}\n```\n\nSupported file formats\n\n*   a `better-scripts` property in package.json  (⭐️ Recommended)\n*   `scripts.json`  (⭐️⭐️ Recommended)\n*   `better-scripts.json`\n*   `.better-scriptsrc`\n*   `.better-scriptsrc.json`\n*   `.better-scriptsrc.yaml`\n*   `.better-scriptsrc.yml`\n*   `.better-scriptsrc.js`\n*   `.better-scriptsrc.cjs`\n*   `better-scriptsrc.config.js`\n*   `better-scriptsrc.config.cjs`\n\n### Specified configuration file\n\n```sh\nyarn scripts --config custom-config.json\n```\n\n## Command line\n\n```sh\nyarn scripts --help\n\n➤_ A better way to organize your npm scripts\n\nCommands:\n  better-scripts              Run your script  [default]\n  better-scripts run \u003cname\u003e   Run script non-interactive, usually in CI mode\n  better-scripts list [name]  Show all scripts\n\nOptions:\n  -v, --version  Show version number  [boolean]\n  -c, --config   Specified config filepath  [string]\n      --track    Show tracked error stack message\n  -h, --help     Show help  [boolean]\n\nExamples:\n  npx better-scripts                   - Run your script interactive\n  npx better-scripts run dev           - Run \"dev\" script non-interactive\n  npx better-scripts run build.deploy  - Run \"build\" and \"deploy\" child script in chain order\n  npx better-scripts list              - Show all scripts\n```\n\n### Default\n\nInteractive with one simple command\n\n```sh\nyarn scripts\n```\n\n### Run\n\nNon-interactive with specific command\n\n```sh\nyarn scripts run \u003cname\u003e\n```\n\n\u003e `\u003cname\u003e` is your script name that defined in config\n\nChain operation\n\n```sh\nyarn scripts run \u003cname.name...\u003e\n```\n\nSkip chaining paths\n\n```sh\nyarn scripts run \u003cname.name...\u003e --skip\n```\n\n\u003e \\-s, --skip\n\n### List\n\nShow all your scripts\n\n```sh\nyarn scripts list\n```\n\nCompact mode\n\n```sh\nyarn scripts list --compact\n```\n\nShow specific script name's scripts\n\n```sh\nyarn scripts list \u003cname\u003e\n```\n\n```sh\nyarn scripts list \u003cname.name...\u003e\n```\n\n## Advanced\n\nThe API is not stable yet\n\n## Contributors\n\n|                                             iamyoki                                             |                                           Garker                                           |                                           annoyc                                           |\n| :---------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------: |\n| [![iamyoki](./static/contributors/iamyoki.svg \"iamyoki\")](https://github.com/iamyoki \"iamyoki\") | [![Garker](./static/contributors/Garker.svg \"Garker\")](https://github.com/Garker \"Garker\") | [![annoyc](./static/contributors/annoyc.svg \"annoyc\")](https://github.com/annoyc \"annoyc\") |\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamyoki%2Fbetter-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamyoki%2Fbetter-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamyoki%2Fbetter-scripts/lists"}