UNPKG

@kibibit/nconf-hjson

Version:

Add support for json with comments files in nconf

61 lines (50 loc) 3.05 kB
<p align="center"> <a href="https://github.com/Kibibit/nconf-hjson" target="blank"><img src="logo.svg" width="150" ></a> <h2 align="center"> @kibibit/nconf-hjson </h2> </p> <p align="center"> <a href="https://www.npmjs.com/package/@kibibit/nconf-hjson"><img src="https://img.shields.io/npm/v/@kibibit/nconf-hjson/latest.svg?style=for-the-badge&logo=npm&color=CB3837"></a> </p> <p align="center"> <a href="https://www.npmjs.com/package/@kibibit/nconf-hjson"><img src="https://img.shields.io/npm/v/@kibibit/nconf-hjson/beta.svg?logo=npm&color=CB3837"></a> <a href="https://github.com/semantic-release/semantic-release"><img src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg"></a> <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> <a href="#contributors-"><img src="https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square" alt="All Contributors"></a> <!-- ALL-CONTRIBUTORS-BADGE:END --> </p> <p align="center"> Support hjson files for nconf </p> <hr> ## Usage ```javascript const nconfHjson = require('@kibibit/nconf-hjson'); nconf.file({ file: '/path/to/some/file.hjson', format: nconfHjson }); ``` ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tr> <td align="center"><a href="http://thatkookooguy.kibibit.io/"><img src="https://avatars3.githubusercontent.com/u/10427304?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Neil Kalman</b></sub></a><br /><a href="https://github.com/Kibibit/nconf-hjson/commits?author=Thatkookooguy" title="Code">💻</a> <a href="https://github.com/Kibibit/nconf-hjson/commits?author=Thatkookooguy" title="Documentation">📖</a> <a href="#design-Thatkookooguy" title="Design">🎨</a> <a href="#maintenance-Thatkookooguy" title="Maintenance">🚧</a> <a href="#infra-Thatkookooguy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/Kibibit/nconf-hjson/commits?author=Thatkookooguy" title="Tests">⚠️</a></td> </tr> </table> <!-- markdownlint-restore --> <!-- prettier-ignore-end --> <!-- ALL-CONTRIBUTORS-LIST:END --> This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind are welcome! <div>Logo made by <a href="https://www.flaticon.com/authors/good-ware" title="Good Ware">Good Ware</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div> <br> ## Stay in touch - Author - [Neil Kalman](https://github.com/thatkookooguy) - Website - [https://github.com/kibibit](https://github.com/kibibit) - StackOverflow - [thatkookooguy](https://stackoverflow.com/users/1788884/thatkookooguy) - Twitter - [@thatkookooguy](https://twitter.com/thatkookooguy) - Twitter - [@kibibit_opensrc](https://twitter.com/kibibit_opensrc)