Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsumners/nixconfig-yaml
https://github.com/jsumners/nixconfig-yaml
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jsumners/nixconfig-yaml
- Owner: jsumners
- Created: 2018-01-03T23:27:11.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T23:27:36.000Z (almost 7 years ago)
- Last Synced: 2024-05-01T23:13:14.377Z (7 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# nixconfig-yaml
This is a plugin for [nixconfig](https://npm.im/nixconfig) to add support for
loading [YAML](https://en.wikipedia.org/wiki/YAML) based configuration files.
It supports files with the extensions `.yaml` and `.yml`.## Examples
Add both supported extensions to the standard loaders:
```js
const nixconfig = require('nixconfig')
const config = nixconfig({
loaders: require('nixconfig-yaml')
})
```Add only the `.yaml` loader to the standard loaders:
```js
const nixconfig = require('nixconfig')
const config = nixconfig({
loaders: [require('nixconfig-yaml')['.yaml']]
})
```## License
[MIT License](http://jsumners.mit-license.org/)