Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byteclubfr/node-sync-files
Synchronize files or folders locally, with a watch option
https://github.com/byteclubfr/node-sync-files
Last synced: 1 day ago
JSON representation
Synchronize files or folders locally, with a watch option
- Host: GitHub
- URL: https://github.com/byteclubfr/node-sync-files
- Owner: byteclubfr
- License: mit
- Created: 2015-02-06T19:51:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-10-17T13:57:16.000Z (about 6 years ago)
- Last Synced: 2024-11-05T03:37:32.253Z (12 days ago)
- Language: JavaScript
- Size: 383 KB
- Stars: 43
- Watchers: 4
- Forks: 15
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-sync-files
Synchronize files or folders locally, with a watch option
## Install
```sh
npm i -g sync-files
```## Usage
![](help-screen.png)
### In your `package.json`
You 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`:
```js
// Before
{
"scripts": {
"build": "cp -rf src/images dist/",
"watch": "???"
}
}// After
{
"devDependencies": {
"sync-files": "^1.0.3"
},
"scripts": {
"build": "sync-files src/images dist/images",
"watch": "sync-files --watch src/images dist/images"
}
}
```## Sample
![](sample-screen.png)