{"_id":"egg-watcher","_rev":"1213351","name":"egg-watcher","description":"file watcher plugin for egg","dist-tags":{"latest":"3.1.1"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"time":{"modified":"2021-10-13T05:46:44.000Z","created":"2016-05-26T09:10:20.702Z","3.1.1":"2020-03-26T02:08:02.403Z","3.1.0":"2018-09-20T15:58:32.730Z","3.0.0":"2017-11-10T12:17:10.482Z","2.2.0":"2017-09-08T09:26:12.139Z","2.1.3":"2017-06-04T14:17:39.040Z","2.1.2":"2017-05-03T04:06:32.432Z","2.1.1":"2017-04-13T09:53:39.072Z","2.1.0":"2017-02-20T08:49:49.888Z","2.0.0":"2017-01-25T09:12:48.758Z","1.0.0":"2016-07-20T14:27:55.334Z","0.0.2":"2016-07-16T10:29:54.166Z","0.0.1":"2016-05-26T09:10:20.702Z"},"users":{},"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"versions":{"3.1.1":{"name":"egg-watcher","version":"3.1.1","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^5.0.0","sdk-base":"^3.5.0","wt":"^1.2.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.8.0","egg-mock":"^3.20.1","eslint":"^5.6.0","eslint-config-egg":"^7.1.0","mz-modules":"^2.1.0","pedding":"^1.1.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10","license":{"year":2016}},"gitHead":"940b52e9c6bb944839387c1b66f6a123ee9b5a5f","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@3.1.1","_nodeVersion":"10.15.1","_npmVersion":"6.11.3","dist":{"shasum":"f1223596c4fe1740218748c8b913f8ca69d2104a","size":5683,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-3.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmUser":{"name":"atian25","email":"atian25@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-watcher_3.1.1_1585188482218_0.9484279370369433"},"_hasShrinkwrap":false,"publish_time":1585188482403,"_cnpm_publish_time":1585188482403},"3.1.0":{"name":"egg-watcher","version":"3.1.0","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^5.0.0","sdk-base":"^3.5.0","wt":"^1.2.0"},"devDependencies":{"autod":"^3.0.1","egg":"^2.11.2","egg-bin":"^4.9.0","egg-ci":"^1.8.0","egg-mock":"^3.20.1","eslint":"^5.6.0","eslint-config-egg":"^7.1.0","mz-modules":"^2.1.0","pedding":"^1.1.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 10","license":{"year":2016}},"gitHead":"c81b7f6e21a4aca3878b5b059208d2f2293fdd35","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"dist":{"shasum":"9bc4ec308ee94110546e059bbf22da5bd3f1eaa0","size":5501,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-3.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-watcher_3.1.0_1537459112596_0.9804148515359954"},"_hasShrinkwrap":false,"publish_time":1537459112730,"_cnpm_publish_time":1537459112730},"3.0.0":{"name":"egg-watcher","version":"3.0.0","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^4.1.0","sdk-base":"^3.3.0","wt":"^1.1.1"},"devDependencies":{"autod":"^2.10.1","egg":"next","egg-bin":"^4.3.5","egg-ci":"^1.8.0","egg-mock":"^3.13.1","eslint":"^4.10.0","eslint-config-egg":"^5.1.1","ko-sleep":"^1.0.3","pedding":"^1.1.0","supertest":"^3.0.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 8.0.0"},"ci":{"version":"8, 9"},"gitHead":"f1e188998733c025c8e405d7344d8fa4b96f08e3","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@3.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.4.0","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"shasum":"0f099f444c7a557d2eb0c0f625110204faff7e65","size":5351,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-3.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-watcher-3.0.0.tgz_1510316230162_0.3812700391281396"},"directories":{},"publish_time":1510316230482,"_cnpm_publish_time":1510316230482,"_hasShrinkwrap":false},"2.2.0":{"name":"egg-watcher","version":"2.2.0","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^4.1.0","sdk-base":"^3.1.1","wt":"^1.1.1"},"devDependencies":{"autod":"^2.8.0","egg":"^1.2.0","egg-bin":"^3.3.2","egg-ci":"^1.6.0","egg-mock":"^3.5.0","eslint":"^3.19.0","eslint-config-egg":"^3.2.0","ko-sleep":"^1.0.2","pedding":"^1.1.0","supertest":"^3.0.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 7, 8"},"gitHead":"dd67a9d041a242053e1620779a98a894f2bf40dd","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@2.2.0","_shasum":"a03cca899b5854c8b7711206d2f8505379b7f1e5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"},"dist":{"shasum":"a03cca899b5854c8b7711206d2f8505379b7f1e5","size":5219,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-2.2.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-watcher-2.2.0.tgz_1504862772057_0.9008808590006083"},"directories":{},"publish_time":1504862772139,"_cnpm_publish_time":1504862772139,"_hasShrinkwrap":false},"2.1.3":{"name":"egg-watcher","version":"2.1.3","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^4.1.0","sdk-base":"^3.1.1","wt":"^1.1.1"},"devDependencies":{"autod":"^2.8.0","egg":"^1.2.0","egg-bin":"^3.3.2","egg-ci":"^1.6.0","egg-mock":"^3.5.0","eslint":"^3.19.0","eslint-config-egg":"^3.2.0","ko-sleep":"^1.0.2","pedding":"^1.1.0","supertest":"^3.0.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"6263d568124a15193a8196df4298f628d5f7c644","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@2.1.3","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"581a654d0beb65a68c69f129b58d609119ba5cbe","size":5151,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-2.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-2.1.3.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/egg-watcher-2.1.3.tgz_1496585858951_0.70465197134763"},"directories":{},"publish_time":1496585859040,"_hasShrinkwrap":false,"_cnpm_publish_time":1496585859040},"2.1.2":{"name":"egg-watcher","version":"2.1.2","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^4.1.0","sdk-base":"^3.1.1","wt":"^1.1.1"},"devDependencies":{"autod":"^2.8.0","egg":"^1.2.0","egg-bin":"^3.3.2","egg-ci":"^1.6.0","egg-mock":"^3.5.0","eslint":"^3.19.0","eslint-config-egg":"^3.2.0","ko-sleep":"^1.0.2","pedding":"^1.1.0","supertest":"^3.0.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"c5adb75a8992f643e88b475827f02079f53166e5","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@2.1.2","_shasum":"6b3ac7b0b8dd5b36628e7d0e9f10e91e8f2ea495","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"},"dist":{"shasum":"6b3ac7b0b8dd5b36628e7d0e9f10e91e8f2ea495","size":5130,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-2.1.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-watcher-2.1.2.tgz_1493784392113_0.5356267092283815"},"directories":{},"publish_time":1493784392432,"_cnpm_publish_time":1493784392432,"_hasShrinkwrap":false},"2.1.1":{"name":"egg-watcher","version":"2.1.1","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^4.0.0","detect-port":"^1.1.0","sdk-base":"^3.0.1","wt":"^1.1.1"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^2.0.1","egg-ci":"^1.1.0","egg-mock":"^2.1.0","eslint":"^3.14.0","eslint-config-egg":"^3.2.0","ko-sleep":"^1.0.2","pedding":"^1.1.0","supertest":"^2.0.1"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"25f9c0388d30bf3c32683c8edbd39d4fa91ff622","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@2.1.1","_shasum":"3facac50e17eaf745dadb5137c812e7bdc522e81","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"},"dist":{"shasum":"3facac50e17eaf745dadb5137c812e7bdc522e81","size":5110,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-2.1.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-watcher-2.1.1.tgz_1492077218817_0.4425139673985541"},"directories":{},"publish_time":1492077219072,"_cnpm_publish_time":1492077219072,"_hasShrinkwrap":false},"2.1.0":{"name":"egg-watcher","version":"2.1.0","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"camelcase":"^4.0.0","detect-port":"^1.1.0","sdk-base":"^3.0.1","wt":"^1.1.1"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^2.0.1","egg-ci":"^1.1.0","egg-mock":"^2.1.0","eslint":"^3.14.0","eslint-config-egg":"^3.2.0","ko-sleep":"^1.0.2","supertest":"^2.0.1"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"f75288856fbe8a0859b7205eefae2b745730afd8","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@2.1.0","_shasum":"da55a864ddcf51049ed2cd9a13b13c0c1cce0705","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"da55a864ddcf51049ed2cd9a13b13c0c1cce0705","size":5028,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-2.1.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-watcher-2.1.0.tgz_1487580588268_0.6524700759910047"},"directories":{},"publish_time":1487580589888,"_cnpm_publish_time":1487580589888,"_hasShrinkwrap":false},"2.0.0":{"name":"egg-watcher","version":"2.0.0","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"lint":"eslint --ext js . --fix","test":"egg-bin test","cov":"egg-bin cov","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"detect-port":"^1.1.0","sdk-base":"^3.0.1","wt":"^1.1.1"},"devDependencies":{"autod":"^2.7.1","egg":"*","egg-bin":"^2.0.1","egg-ci":"^1.1.0","egg-mock":"^2.1.0","eslint":"^3.14.0","eslint-config-egg":"^3.2.0","ko-sleep":"^1.0.2","supertest":"^2.0.1"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 6.0.0"},"ci":{"version":"6, 7"},"gitHead":"39f9c4315b05ff64c1ab0d5941ce3269b1fa5b91","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@2.0.0","_shasum":"87a0df6791c13e6d5c5e48c093f70e834b680b88","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"popomore","email":"sakura9515@gmail.com"},"dist":{"shasum":"87a0df6791c13e6d5c5e48c093f70e834b680b88","size":4242,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-2.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/egg-watcher-2.0.0.tgz_1485335567096_0.07604578090831637"},"directories":{},"publish_time":1485335568758,"_cnpm_publish_time":1485335568758,"_hasShrinkwrap":false},"1.0.0":{"name":"egg-watcher","version":"1.0.0","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"sdk-base":"~1.1.0","wt":"~1.1.0"},"devDependencies":{"autod":"2","egg":"*","egg-bin":"1","egg-ci":"1","egg-mock":"*","eslint":"3","eslint-config-egg":"3","should":"^9.0.2","supertest":"^1.2.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6"},"gitHead":"2b57dab9b478fbb3277039665a30fa90f4ea3f23","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@1.0.0","_shasum":"9ab8824f5ed87459206e3fcc4e38212a64ee58b0","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"luckydrq","email":"drqzju@gmail.com"},"dist":{"shasum":"9ab8824f5ed87459206e3fcc4e38212a64ee58b0","size":4330,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-1.0.0.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-watcher-1.0.0.tgz_1469024868093_0.16369202686473727"},"directories":{},"publish_time":1469024875334,"_cnpm_publish_time":1469024875334,"_hasShrinkwrap":false},"0.0.2":{"name":"egg-watcher","version":"0.0.2","description":"file watcher plugin for egg","eggPlugin":{"name":"watcher"},"files":["app.js","agent.js","config","lib"],"scripts":{"test":"npm run lint && npm run test-local","test-local":"egg-bin test","cov":"egg-bin cov","lint":"eslint --ext js . --fix","ci":"npm run lint && npm run cov","autod":"autod"},"dependencies":{"sdk-base":"~1.1.0","wt":"~1.1.0"},"devDependencies":{"autod":"^2.6.1","egg-bin":"^1.0.2","egg-ci":"^1.0.2","eslint":"3","eslint-config-egg":"3","should":"^9.0.2","supertest":"^1.2.0"},"homepage":"https://github.com/eggjs/egg-watcher","repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"keywords":["egg-watcher","egg","watcher","watch"],"engines":{"node":">= 4.0.0"},"ci":{"version":"4, 6"},"gitHead":"17405238501e1311627a931c5af0ff1f47c4ead1","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@0.0.2","_shasum":"d1e0cc2606eb6b7aaa979c1cf2e79a6fee703feb","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"luckydrq","email":"drqzju@gmail.com"},"dist":{"shasum":"d1e0cc2606eb6b7aaa979c1cf2e79a6fee703feb","size":4328,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-0.0.2.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/egg-watcher-0.0.2.tgz_1468664991629_0.3189415377564728"},"directories":{},"publish_time":1468664994166,"_cnpm_publish_time":1468664994166,"_hasShrinkwrap":false},"0.0.1":{"name":"egg-watcher","version":"0.0.1","description":"egg plugin <egg-watcher>","keywords":["egg","eggjs","egg-plugin"],"homepage":"https://github.com/eggjs/egg-watcher","license":"MIT","author":{"name":"eggjs"},"contributors":[{"name":"TZ","email":"atian25@qq.com"},{"name":"popomore","email":"sakura9515@gmail.com"},{"name":"fengmk2","email":"m@fengmk2.com"},{"name":"dead-horse","email":"heyiyu.deadhorse@gmail.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/eggjs/egg-watcher.git"},"bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"},"_id":"egg-watcher@0.0.1","scripts":{},"_shasum":"92f38f8d6d5762a5142c14282735dadc1941d88d","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"atian25","email":"atian25@qq.com"},"dist":{"shasum":"92f38f8d6d5762a5142c14282735dadc1941d88d","size":423,"noattachment":false,"key":"/egg-watcher/-/egg-watcher-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/egg-watcher/download/egg-watcher-0.0.1.tgz"},"maintainers":[{"name":"atian25","email":"atian25@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"luckydrq","email":"drqzju@gmail.com"},{"name":"shaoshuai0102","email":"shaoshuai0102@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/egg-watcher-0.0.1.tgz_1464253818064_0.003836379386484623"},"directories":{},"publish_time":1464253820702,"_cnpm_publish_time":1464253820702,"_hasShrinkwrap":false}},"readme":"# egg-watcher\nFile watcher plugin for egg\n\n[![NPM version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![Test coverage][codecov-image]][codecov-url]\n[![David deps][david-image]][david-url]\n[![Known Vulnerabilities][snyk-image]][snyk-url]\n[![npm download][download-image]][download-url]\n\n[npm-image]: https://img.shields.io/npm/v/egg-watcher.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/egg-watcher\n[travis-image]: https://img.shields.io/travis/eggjs/egg-watcher.svg?style=flat-square\n[travis-url]: https://travis-ci.org/eggjs/egg-watcher\n[codecov-image]: https://codecov.io/github/eggjs/egg-watcher/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/eggjs/egg-watcher?branch=master\n[david-image]: https://img.shields.io/david/eggjs/egg-watcher.svg?style=flat-square\n[david-url]: https://david-dm.org/eggjs/egg-watcher\n[snyk-image]: https://snyk.io/test/npm/egg-watcher/badge.svg?style=flat-square\n[snyk-url]: https://snyk.io/test/npm/egg-watcher\n[download-image]: https://img.shields.io/npm/dm/egg-watcher.svg?style=flat-square\n[download-url]: https://npmjs.org/package/egg-watcher\n\n## Usage\n\nIn worker process:\n\n### app.watcher.watch(path, listener)\nStart watching file(s).\n\n- path(String|Array): file path(s)\n- listener(Function): file change callback\n\n### app.watcher.unwatch(path[, listener])\nStop watching file(s).\n\n- path(String|Array): file path(s)\n- listener(Function): file change callback\n\nIn agent process:\n\n### agent.watcher.watch(path, listener)\nStart watching file(s).\n\n- path(String|Array): file path(s)\n- listener(Function): file change callback\n\n### agent.watcher.unwatch(path[, listener])\nStop watching file(s).\n\n- path(String|Array): file path(s)\n- listener(Function): file change callback\n\n## Watching mode\n\n### `development` Mode\n\nThere's a built-in [development mode](https://github.com/eggjs/egg-watcher/blob/master/lib/event-sources/development.js) which works in local(env is `local`). Once files on disk is modified it will emit a `change` event immediately.\n\n### Customize Watching Mode\n\nSay we want to build a custom event source plugin (package name: `egg-watcher-custom`, eggPlugin.name: `watcherCustom`).\n\nFirstly define our custom event source like this:\n\n```js\n// {plugin_root}/lib/custom_event_source.js\nconst Base = require('sdk-base');\n\nclass CustomEventSource extends Base {\n  // `opts` comes from app.config[${eventSourceName}]\n  // `eventSourceName` will be registered later in\n  // `config.watcher.eventSources` as the key shown below\n  constructor(opts) {\n    super(opts);\n    this.ready(true);\n  }\n\n  watch(path) {\n    // replace this with your desired way of watching,\n    // when aware of any change, emit a `change` event\n    // with an info object containing `path` property\n    // specifying the changed directory or file.\n    this._h = setInterval(() => {\n      this.emit('change', { path });\n    }, 1000);\n  }\n\n  unwatch() {\n    // replace this with your implementation\n    if (this._h) {\n      clearInterval(this._h);\n    }\n  }\n}\n\nmodule.exports = CustomEventSource;\n```\n\nEvent source implementations varies according to your running environment. When working with vagrant, docker, samba or such other non-standard way of development, you should use a different watch API specific to what you are working with.\n\nThen add your custom event source to config:\n\n```js\n// config.default.js\nexports.watcher = {\n  eventSources: {\n    custom: require('../lib/custom_event_source'),\n  },\n};\n```\n\nChoose to use your custom watching mode in your desired env.\n\n```js\n// config.${env}.js\nexports.watcher = {\n  type: 'custom',\n};\n\n// this will pass to your CustomEventSource constructor as opts\nexports.watcherCustom = {\n  // foo: 'bar',\n};\n```\n\nIf possible, plugins named like `egg-watcher-${customName}`(`egg-watcher-vagrant` eg.) are recommended.\n\n## Questions & Suggestions\n\nPlease open an issue [here](https://github.com/eggjs/egg/issues).\n\n## License\n\n[MIT](https://github.com/eggjs/egg-watcher/blob/master/LICENSE)\n","_attachments":{},"homepage":"https://github.com/eggjs/egg-watcher","bugs":{"url":"https://github.com/eggjs/egg-watcher/issues"}}