{"id":21879158,"url":"https://github.com/typpo/autoreload","last_synced_at":"2025-06-24T22:31:45.973Z","repository":{"id":10830980,"uuid":"13108903","full_name":"typpo/autoreload","owner":"typpo","description":"standalone autoreload script","archived":false,"fork":false,"pushed_at":"2015-09-28T04:09:17.000Z","size":179,"stargazers_count":19,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-04T11:22:14.324Z","etag":null,"topics":[],"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/typpo.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":"2013-09-26T00:16:54.000Z","updated_at":"2023-05-05T10:34:44.000Z","dependencies_parsed_at":"2022-09-02T21:02:52.561Z","dependency_job_id":null,"html_url":"https://github.com/typpo/autoreload","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/typpo/autoreload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fautoreload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fautoreload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fautoreload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fautoreload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typpo","download_url":"https://codeload.github.com/typpo/autoreload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typpo%2Fautoreload/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261766746,"owners_count":23206683,"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":[],"created_at":"2024-11-28T08:15:26.544Z","updated_at":"2025-06-24T22:31:45.896Z","avatar_url":"https://github.com/typpo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"autoreload\n==========\n\nThis is an easy-to-use command-line \"automatic reload\" or \"live reload\" script for developers.  It makes your browser reload when you edit files.  It's based on [connect-autoreload](https://github.com/typpo/connect-autoreload).\n\nGet it with npm:  `npm install -g autoreload`\n\n# Usage\n\n### Run autoreload\n\nDirectories or files are valid arguments.  For example, to recursively watch 3 directories and a file for changes:\n\n    $ autoreload js css templates/main settings.py\n\nTo watch everything in the current directory and below:\n\n    $ autoreload .\n\n### Add js to your page\n\nOnce running, autoreload will print a script tag to include on your page:\n\n     \u003cscript src=\"http://localhost:60000/autoreload.js\"\u003e\u003c/script\u003e\n\nAnd call AutoReload.Watch() to begin watching for changes:\n\n     \u003cscript\u003e\n       AutoReload.Watch('localhost:60000');   // or some other host/port\n     \u003c/script\u003e\n\n### Details\n\nautoreload options:\n\n      --port, -p     Port server listens on           [default: 60000]\n      --exclude, -e  Regex matching files to exclude  [default: \"\\\\.sw[poaxn]$\"]\n      --regex_opts   Exclusion regex options          [default: \"im\"]\n      --https        Use https                        [default: false]\n      --key          SSL key                          [default: dummy SSL key]\n      --cert         SSL cert                         [default: dummy SSL cert]\n\nTo stop watching for changes, call `AutoReload.Stop()`.\n\n## SSL\n\nYou have three options if your development server requires SSL.\n\n   1. Proxy the http autoreload script through your SSL-configured web server (apache or nginx).\n\n   2. Use the `--https` option and load the script directly in your browser to accept the dummy SSL certificate.\n\n   3. Provide your own SSL certificate using `--key` and `--cert`.\n\n## jQuery dependency\n\nautoreload.js assumes jquery is available in our page.  This issue is tracked [here](https://github.com/typpo/autoreload/issues/1).\n\n## Troubleshooting\n\nIf you get `Error: watch ENOSPC`, chances are you need to increase your filesystem watches:\n\n`echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf \u0026\u0026 sudo sysctl -p`\n\n## MIT License\n\n```\nCopyright (c) 2013 Room 77, Ian Webster\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyppo%2Fautoreload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftyppo%2Fautoreload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftyppo%2Fautoreload/lists"}