sync-update

1.0.4 • Public • Published

install

npm i sync-update

use

index.js

const path = require('path');
const {syncUpdate} = require('sync-uodate');
const src = path.resolve(__dirname, './src');
const dist = path.resolve(__dirname, './dist');
// const src ="E:\\xxx\\src";
// const dist = "E:\\yy\\zz\\xxxx";
syncUpdate(src, dist);

cmd 中运行

当 src 目录中文件发生变化, dist 中可以同步到此变化;不需要使用 modemon

node index.js

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    2

Package Sidebar

Install

npm i sync-update

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

6.24 kB

Total Files

5

Last publish

Collaborators

  • wuyonggang100