Inheritable configurations with very simple design and usage.
Does not support recursive inheritance.
npm i https://github.com/main76/inherit-scope
js-yaml
The 2nd parameter is optional, whose default value is InputType.JSON_FILE
.
const { InputType, createEntry } = require('inherit-scope');
const entry = createEntry(entryJsonPath, InputType.JSON_FILE);
- JSON
- YAML
- Object
- Custom
Please refer to the files under sub directory samples
.
npm run test
Add more samples:
- YAML.
- Object.
- Custom loader.