Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tornqvist/jazzon-import
Plugin for jazzon to import other files
https://github.com/tornqvist/jazzon-import
Last synced: about 1 month ago
JSON representation
Plugin for jazzon to import other files
- Host: GitHub
- URL: https://github.com/tornqvist/jazzon-import
- Owner: tornqvist
- Created: 2015-09-21T14:24:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T08:46:41.000Z (over 9 years ago)
- Last Synced: 2024-11-14T04:15:36.849Z (about 1 month ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jazzon-import
> Plugin for jazzon to import other files
## Usage
The plugin requires option `from` to know where to look for files.
```javascript
let jazzon = require('jazzon');
let importer = require('jazzon-import');
let json = { foo: '@{ import(foo.json) }' };jazzon
.use(importer({ from: __dirname }))
.compile(json)
.then((result) => {
console.log(result); // => { "foo": }
});
```## TODO
- [ ] Support importing JavaScript files
- [ ] Explore using relative paths