{"id":21287798,"url":"https://github.com/levidavidmurray/nfs-watcher-js","last_synced_at":"2025-10-13T21:13:52.033Z","repository":{"id":42208734,"uuid":"185114672","full_name":"levidavidmurray/nfs-watcher-js","owner":"levidavidmurray","description":"Node.js script to detect changes on a local filesystem, and force an inotify update on a remote machine","archived":false,"fork":false,"pushed_at":"2022-12-03T08:23:35.000Z","size":101,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T15:31:51.793Z","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/levidavidmurray.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":"2019-05-06T03:06:12.000Z","updated_at":"2022-08-10T00:04:58.000Z","dependencies_parsed_at":"2023-01-23T07:00:09.366Z","dependency_job_id":null,"html_url":"https://github.com/levidavidmurray/nfs-watcher-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/levidavidmurray/nfs-watcher-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidavidmurray%2Fnfs-watcher-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidavidmurray%2Fnfs-watcher-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidavidmurray%2Fnfs-watcher-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidavidmurray%2Fnfs-watcher-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/levidavidmurray","download_url":"https://codeload.github.com/levidavidmurray/nfs-watcher-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/levidavidmurray%2Fnfs-watcher-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017052,"owners_count":26085949,"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-10-13T02:00:06.723Z","response_time":61,"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":[],"created_at":"2024-11-21T12:15:56.641Z","updated_at":"2025-10-13T21:13:52.006Z","avatar_url":"https://github.com/levidavidmurray.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFS Watcher\nWatches all files in a specified local directory, and forces a filesystem update on the remote machine whenever the file is changed locally. Useful for things like hot reloading with webpack when the source files are not local to where they're being used.\n\n### Usage\n```shell\n# Install dependencies\ngit clone https://github.com/levidavidmurray/nfs-watcher\ncd nfs-watcher\nyarn install\n```\n\n```shell\n# Configuration\nvi watcher.config.js\n\n# See below\n```\n\n**localWatchDirs**: Directories being watched for changes\n\n**localAppRoot**: Local app root differentiating between local and remote filesystems\n\n**remoteAppRoot**: Remote app root differentiating between remote and local filesystems\n\n##### watcher.config.js\n```config\nmodule.exports = {\n\tlocalWatchDirs: \"/path/to/watch/directory/\", // Array for multiple directories\n\tlocalAppRoot: \"/local/path/to/app/root\",\n\tremoteAppRoot: \"/remote/path/to/app/root\",\n\n\tdevServer: {\n\t\thost: 'domain.example.com',\n\t\tport: 22,\n\t\tusername: 'user',\n\t\tagent: '/path/to/ssh/agent'\n\t\t// or specify private key\n\t\tprivateKey: '/home/levi/.ssh/id_rsa'\n\t}\n}\n```\nSee [node-ssh](https://www.npmjs.com/package/node-ssh) for more SSH configuration options\n\n##### Example\n```config\nmodule.exports = {\n\tlocalWatchDirs: [\"/home/levi/myApp/src\", \"home/levi/myApp/lib\"],\n\tlocalAppRoot: \"/home/levi/myApp\",\n\tremoteAppRoot: \"/mnt/myApp\",\n\n\tdevServer: {\n\t\thost: 'levi.myapp.ca',\n\t\tport: 22,\n\t\tusername: 'myapp',\n\t\tagent: '/run/user/1000/keyring/.ssh'\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevidavidmurray%2Fnfs-watcher-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flevidavidmurray%2Fnfs-watcher-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flevidavidmurray%2Fnfs-watcher-js/lists"}