{"id":22038810,"url":"https://github.com/chrisdwheatley/strt","last_synced_at":"2026-05-08T08:11:34.870Z","repository":{"id":57372929,"uuid":"84105283","full_name":"chrisdwheatley/strt","owner":"chrisdwheatley","description":"A file watching application restarter for your 'npm start' command.","archived":false,"fork":false,"pushed_at":"2017-03-13T20:50:02.000Z","size":321,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-02T20:07:35.289Z","etag":null,"topics":["file-watchers","npm","npm-package","npm-scripts","restart-server","watch-files"],"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/chrisdwheatley.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":"2017-03-06T18:12:19.000Z","updated_at":"2023-09-08T17:21:52.000Z","dependencies_parsed_at":"2022-08-29T14:43:25.106Z","dependency_job_id":null,"html_url":"https://github.com/chrisdwheatley/strt","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdwheatley%2Fstrt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdwheatley%2Fstrt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdwheatley%2Fstrt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdwheatley%2Fstrt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisdwheatley","download_url":"https://codeload.github.com/chrisdwheatley/strt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104460,"owners_count":20561377,"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":["file-watchers","npm","npm-package","npm-scripts","restart-server","watch-files"],"created_at":"2024-11-30T11:08:12.775Z","updated_at":"2026-05-08T08:11:29.846Z","avatar_url":"https://github.com/chrisdwheatley.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# strt\n\nA file watching application restarter for your `npm start` command.\n\n\u003ca href=\"https://npmjs.com/strt\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/chrisdwheatley/strt/master/images/strt-example.png\" width=\"50%\"\u003e\u003c/a\u003e\n\n## Features\n\n* __Reliable__ - A development environment matching your production environment by running the same command you do in production (`npm start`).\n* __Fast__ - Application restarts are super performant thanks to file watching from [`chokidar`](https://www.npmjs.com/package/chokidar).\n* __Simple__ - Offers sensible defaults for node.js applications.\n* __Configurable__ - File watch \u0026 ignore patterns can be defined as well as being able to amend the command run.\n\n## Usage\n\n`strt` can be installed locally or globally with either [Yarn](https://yarnpkg.com/en/) or [npm](https://www.npmjs.com/).\n\n### Locally\n\n```bash\nyarn add strt --dev\nnpm install strt --dev\n```\n\nOnce installed locally add a task to `scripts` within your `package.json`;\n\n```json\n{\n  \"main\": \"index.js\",\n  \"scripts\": {\n    \"dev\": \"strt\",\n    \"start\": \"node index.js\"\n  }\n}\n```\n\nNow just run;\n\n```\nnpm run dev\n```\n\nTo start your application \u0026 begin watching for changes.\n\n### Globally\n\n```bash\nyarn global add strt\nnpm install --global strt\n```\n\nOnce installed globally you can run `strt` on the command line from your application root to start watching for changes.\n\n## Options\n\n```bash\n--command (-c) [value] Command to run on file change (defaults to \"npm start\")\n\n--files   (-f) [value] Glob pattern of files to watch for changes (defaults to \".\")\n\n--help    (-h)         Output usage information\n\n--ignore  (-i) [value] Glob pattern of files to ignore (defaults to \"node_modules\")\n\n--version (-v)         Output the version number\n```\n\n## Contributing\n\n1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device\n2. Link the package to the global module directory: `npm link`\n4. Within the module you want to test your local development instance of `strt`, just link it to the dependencies: `npm link strt`. Your local version of `strt` will now be used.\n\n## License\n\nReleased under the MIT license: [opensource.org/licenses/MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdwheatley%2Fstrt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisdwheatley%2Fstrt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdwheatley%2Fstrt/lists"}