JSON-Watcher 配置监听者
JSON-Watcher 是 NodeJS 的插件,用于动态获取 JSON 文件的配置数据。
Install 安装
npm install @cxy1287338537/json-watcher
Usage 使用
const watchJSON = require('@cxy1287338537/json-watcher');
watchJSON('*.json', data => {
console.info(data);
});
JSON-Watcher 是 NodeJS 的插件,用于动态获取 JSON 文件的配置数据。
npm install @cxy1287338537/json-watcher
const watchJSON = require('@cxy1287338537/json-watcher');
watchJSON('*.json', data => {
console.info(data);
});
npm i @cxy1287338537/json-watcher
1
1.0.3
ISC
37 kB
6