{"id":21004673,"url":"https://github.com/flaque/script-kitty","last_synced_at":"2026-05-15T08:35:11.127Z","repository":{"id":80716176,"uuid":"109517891","full_name":"Flaque/script-kitty","owner":"Flaque","description":null,"archived":false,"fork":false,"pushed_at":"2017-11-04T21:06:48.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T10:13:53.369Z","etag":null,"topics":["cli","npm","scripts"],"latest_commit_sha":null,"homepage":null,"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/Flaque.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-04T18:02:39.000Z","updated_at":"2021-02-04T17:30:16.000Z","dependencies_parsed_at":"2023-04-03T14:35:24.459Z","dependency_job_id":null,"html_url":"https://github.com/Flaque/script-kitty","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fscript-kitty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fscript-kitty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fscript-kitty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flaque%2Fscript-kitty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flaque","download_url":"https://codeload.github.com/Flaque/script-kitty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243419465,"owners_count":20287895,"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":["cli","npm","scripts"],"created_at":"2024-11-19T08:37:26.522Z","updated_at":"2025-10-13T16:08:08.178Z","avatar_url":"https://github.com/Flaque.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐱 script-kitty\n\n## Install\n\nWith npm:\n```\nnpm install -g script-kitty\n```\n\nWith yarn:\n```\nyarn global add script-kitty\n```\n\nYou can also install it in your project's `devDependencies`: \n\n``` \nnpm install --save-dev script-kitty\n```\n\nand then create an `update-scripts` command like so:\n\n``` json\n{\n    \"scripts\": {\n        \"update-scripts\": \"./node_modules/.bin/script-kitty scripts\"\n    }\n}\n```\n\n## Overview \n\nScript Kitty is a command line tool that takes a folder full of scripts (bash or otherwise) and sets them as `scripts` commands in your `package.json`.\n\nFor example, given a folder system that looks like this:\n``` \nMyAwesomeProject\n  - ... // Some code files\n  - package.json \n  - scripts\n    - bloop.sh\n    - shmoop.sh\n    - fuzzbing.js\n```\n\nRunning `script-kitty scripts` in your project root will generate 3 commands for you like this:\n```\nnpm run bloop\nnpm run shmoop\nnpm run fuzzbing\n```\n\nIt does this by editing your `package.json` like so:\n``` json\n{\n    \"scripts\": {\n        \"bloop\": \"./scripts/bloop.sh\",\n        \"shmoop\": \"./scripts/shmoop.sh\",\n        \"fuzzbing\": \"node ./scripts/fuzzbing.js\"\n    }\n}\n```\n\n## Why would I need this?\nThis tool was made to avoid `scripts` bloat. If your `scripts` look like this:\n\n``` json\n\"scripts\": {\n    \"build\": \"webpack --config app/renderer/renderer.config.js\",\n    \"db-migrate-create\": \"node node_modules/db-migrate/bin/db-migrate create $NAME -e dev --config config/database.json\",\n    \"test\": \"NODE_ENV=test ./node_modules/.bin/jest\",\n    \"test-windows\": \"set NODE_ENV=test\u0026\u0026 npm run test-windows2\",\n    \"test-windows2\": \"./node_modules/.bin/jest\",\n    \"test-on-ci\": \"xvfb-maybe ./node_modules/.bin/jest --runInBand\",\n    \"test-watch\": \"./node_modules/.bin/jest --watch\",\n    \"plop\": \"./node_modules/.bin/plop\",\n    \"lint\": \"./node_modules/.bin/eslint lib app\",\n    \"lint-fix\": \"./node_modules/.bin/eslint --fix lib app\",\n    \"dev\": \"NODE_ENV=dev \u0026\u0026 npm run build \u0026\u0026 electron app/main/index.js\",\n    \"prod\": \"NODE_ENV=prod \u0026\u0026 npm run build \u0026\u0026 electron app/main/index.js\",\n    \"dev-down\": \"node node_modules/db-migrate/bin/db-migrate down -e dev --config config/database.json\",\n    \"prod-down\": \"node node_modules/db-migrate/bin/db-migrate down -e prod --config config/database.json\",\n    \"test-down\": \"node node_modules/db-migrate/bin/db-migrate down -e test --config config/database.json\",\n    \"dev-up\": \"node node_modules/db-migrate/bin/db-migrate up -e dev --config config/database.json\",\n    \"prod-up\": \"node node_modules/db-migrate/bin/db-migrate up -e prod --config config/database.json\",\n    \"test-up\": \"node node_modules/db-migrate/bin/db-migrate up -e test --config config/database.json\",\n    \"dev-reset\": \"node node_modules/db-migrate/bin/db-migrate reset -e dev --config config/database.json\",\n    \"prod-reset\": \"node node_modules/db-migrate/bin/db-migrate reset -e prod --config config/database.json\",\n    \"test-reset\": \"node node_modules/db-migrate/bin/db-migrate reset -e test --config config/database.json\",\n    \"create-db-config\": \"NODE_ENV=dev babel-node lib/io/sqlite/scripts/createDatabaseConfig.js\",\n    \"dev-windows\": \"set NODE_ENV=dev\u0026\u0026 npm run build \u0026\u0026 electron app/main/index.js\",\n    \"prod-windows\": \"set NODE_ENV=prod\u0026\u0026 npm run build \u0026\u0026 electron app/main/index.js\",\n    \"fmt\": \"./node_modules/.bin/prettier --write '!(coverage|scripts|.vscode|node_modules)/**/!(.compiled|build|dist)/*.js'\",\n    \"storybook\": \"start-storybook -p 6006\",\n    \"build-storybook\": \"build-storybook\",\n    \"dist\": \"./node_modules/.bin/electron-packager . --out ./dist --overwrite\",\n    \"snyk-protect\": \"snyk protect\",\n    \"prepare\": \"npm run snyk-protect\"\n  }\n```\n\nInstead, we can move these commands into single files that will let us combine some of these tools into single commands. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fscript-kitty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaque%2Fscript-kitty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaque%2Fscript-kitty/lists"}