self-reload-json
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "self-reload-json", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Self reloading JSON handler", | ||
"main": "index.js", | ||
"main": "./lib/", | ||
"typings": "./lib/index.d.ts", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"build": "babel -d lib/ src/", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -15,3 +17,4 @@ "repository": { | ||
"JSON", | ||
"Reload" | ||
"Reload", | ||
"Hot" | ||
], | ||
@@ -24,3 +27,8 @@ "author": "Jeremy Lam (JLChnToZ)", | ||
"homepage": "https://github.com/JLChnToZ/selfreloadjson#readme", | ||
"dependencies": {} | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-env": "^1.6.1" | ||
} | ||
} |
Self Reload JSON | ||
================ | ||
[![NPM](https://nodei.co/npm/self-reload-json.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/self-reload-json/) | ||
[![GitHub issues](https://img.shields.io/github/issues/JLChnToZ/selfreloadjson.svg)](https://github.com/JLChnToZ/selfreloadjson/issues) | ||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) | ||
[![Node version](https://img.shields.io/node/v/self-reload-json.svg)](package.json) | ||
[![NPM version](https://img.shields.io/npm/v/self-reload-json.svg)](https://www.npmjs.com/package/self-reload-json) | ||
[![NPM downloads](https://img.shields.io/npm/dt/self-reload-json.svg)](https://www.npmjs.com/package/self-reload-json) | ||
@@ -42,2 +46,4 @@ Simple node.js module which will auto reload specified JSON file. | ||
- **replacer** - either number, string or function, the [replacer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter) function when converting JSON object back to string. You can override this option while calling `save` (see below). Default is `null`. | ||
- **depth** - integer, depth of deep patching which try to keeps child object with same references, 0 to disable, negative values to apply all. Default is -1. | ||
- **delay** - integer, set the delay time to trigger update the object in order to prevent event triggered several times or sometimes throws error because of trying to read the source JSON file but it is not yet completely updated. Default is 0 (immediately). | ||
@@ -44,0 +50,0 @@ #### `stop()` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
53752
12
712
1
81
3
2