{"id":20557724,"url":"https://github.com/byteclubfr/node-sync-files","last_synced_at":"2025-04-14T13:21:00.747Z","repository":{"id":26966787,"uuid":"30430136","full_name":"byteclubfr/node-sync-files","owner":"byteclubfr","description":"Synchronize files or folders locally, with a watch option","archived":false,"fork":false,"pushed_at":"2018-10-17T13:57:16.000Z","size":392,"stargazers_count":43,"open_issues_count":10,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T02:24:26.294Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byteclubfr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-06T19:51:25.000Z","updated_at":"2023-06-10T16:09:50.000Z","dependencies_parsed_at":"2022-08-24T15:04:10.367Z","dependency_job_id":null,"html_url":"https://github.com/byteclubfr/node-sync-files","commit_stats":null,"previous_names":["lmtm/node-sync-files"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteclubfr%2Fnode-sync-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteclubfr%2Fnode-sync-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteclubfr%2Fnode-sync-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byteclubfr%2Fnode-sync-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byteclubfr","download_url":"https://codeload.github.com/byteclubfr/node-sync-files/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248186123,"owners_count":21061611,"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-16T03:39:06.057Z","updated_at":"2025-04-14T13:21:00.720Z","avatar_url":"https://github.com/byteclubfr.png","language":"JavaScript","funding_links":[],"categories":["Cross-platform Utilities"],"sub_categories":[],"readme":"# node-sync-files\n\nSynchronize files or folders locally, with a watch option\n\n## Install\n\n```sh\nnpm i -g sync-files\n```\n\n## Usage\n\n![](help-screen.png)\n\n### In your `package.json`\n\nYou may have some build script in your package.json involving mirroring folders (let's say, static assets), that's a good use-case for `sync-files`:\n\n```js\n// Before\n{\n  \"scripts\": {\n    \"build\": \"cp -rf src/images dist/\",\n    \"watch\": \"???\"\n  }\n}\n\n// After\n{\n  \"devDependencies\": {\n    \"sync-files\": \"^1.0.3\"\n  },\n  \"scripts\": {\n    \"build\": \"sync-files src/images dist/images\",\n    \"watch\": \"sync-files --watch src/images dist/images\"\n  }\n}\n```\n\n## Sample\n\n![](sample-screen.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteclubfr%2Fnode-sync-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyteclubfr%2Fnode-sync-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyteclubfr%2Fnode-sync-files/lists"}