Extended (pluggable) JSON for node - great for configuration files and JSON transformations
by tjJavaScript
Last 12 weeks · 0 commits
1 of 6 standards met
I took a look at this library for configuring the express server in one of my projects. The plugin support with features like eson.ms is awesome. However the argv parsing is crude and eson doesn't allow me to parse any more than one config file (I'd like to save defaults in one, some env specific stuff in another, and then read a real user config file somewhere). Looking at nconf on the other hand it supports multiple file parsing, defaults, overrides, arg parsing using a full argv parser (optimist), but it has no support for plugins that support tweaking the values within the config files parsed. Instead of excelling in one area and trying to re-do another would you consider patching another library like nconf to support eson's type of plugins and making eson a collection of plugins.
Repository: tj/eson. Description: Extended (pluggable) JSON for node - great for configuration files and JSON transformations Stars: 151, Forks: 14. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 1, open issues: 4. Last activity: 12y ago. Community health: 28%. Top contributors: tj, 3rd-Eden, TooTallNate, timoxley.
This builds upon the functionality in #1, adding the ability to run a file's content through a preprocessor before being added to the JSON. My use case I'm building a backend-less website, where the data is simply defined in json, and I'd like to be able to easily include the content of files in non-JSON formats (e.g. markdown) in my json file. If there's anything you'd like me to do to make these PRs better, let me know.