interpolate-json
Advanced tools
Comparing version 0.7.4 to 0.7.5
{ | ||
"name": "interpolate-json", | ||
"version": "0.7.4", | ||
"version": "0.7.5", | ||
"description": "Interpolate a Javascript Object or string with json - Advanced", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -153,3 +153,3 @@ # interpolate-json [![NPM version](https://img.shields.io/npm/v/interpolate-json.svg?style=plastic)](https://www.npmjs.com/package/interpolate-json) | ||
Each section can be individually set through Environment Variables INTERPOLATE_OPTION_[*CONFIGNAME*] (or you can also set it inside [`values`](#values) or json type [`obj`](#obj). See an extreme [Example](tests/config.func.custom.option.json)) | ||
Each section can be individually set through Environment Variables INTERPOLATE_OPTION_[*CONFIGNAME*] (or you can also set it inside [`values`](#values) or `json` type [`obj`](#obj). See an extreme [Example](tests/config.func.custom.option.json)) | ||
@@ -232,2 +232,4 @@ ###### debug | ||
> This option is only applicable to `json` type [`obj`](#obj) | ||
> It should not also be touched either unless really needed. Should be a single character (preferably a special character, e.g. #, =, *, <, >, ~ etc). | ||
@@ -260,2 +262,12 @@ | ||
```javascript | ||
// Syntax I | ||
const interpolation = require('interpolate-json'); | ||
interpolation.expand(obj, value); | ||
// Syntax II | ||
const { expand } = require('interpolate-json'); | ||
expand(obj, value); | ||
``` | ||
#### debug() | ||
@@ -262,0 +274,0 @@ |
14810
301