Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/food-x-technologies/escolar
Replace properties in json with contents in files.
https://github.com/food-x-technologies/escolar
azure-arm-templates build-tool cd ci external-file file javascript json npm npm-package
Last synced: about 1 month ago
JSON representation
Replace properties in json with contents in files.
- Host: GitHub
- URL: https://github.com/food-x-technologies/escolar
- Owner: Food-X-Technologies
- License: mit
- Created: 2020-12-12T23:07:26.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T07:36:09.000Z (over 3 years ago)
- Last Synced: 2024-11-28T14:56:53.354Z (2 months ago)
- Topics: azure-arm-templates, build-tool, cd, ci, external-file, file, javascript, json, npm, npm-package
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@foodx/escolar
- Size: 21.5 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# escolar
Replace properties in json with file contents.
```
{
"property": "#./contents.txt#",
}
```
Reads from properties that start and end with '#'; containing a file name inbetween.## Example
### [Json File](https://github.com/Food-X-Technologies/escolar/blob/main/example/example.json)
```
{
"property": "#./contents.txt#",
"fake": [],
"inner": {
"nope": 123,
"what": "yes"
}
}
```
### [Text File](https://github.com/Food-X-Technologies/escolar/blob/main/example/contents.txt)
```
working, y'all!
```
### Output
```
{
"property": "working, y'all!",
"fake": [],
"inner": {
"nope": 123,
"what": "yes"
}
}
```