Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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"
}
}
```