cosmiconfig
json5
Our great sponsors
cosmiconfig | json5 | |
---|---|---|
5 | 94 | |
3,835 | 6,291 | |
1.3% | 1.3% | |
8.3 | 0.0 | |
2 months ago | 5 months ago | |
TypeScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cosmiconfig
-
topoconfig: enhancing config declarations with graphs
Meanwhile, formats have been evolving (JSON5, YAML), config entry points are constantly changing. These fluctuations, fortunately, were covered by tools like the cosmiconfig.
-
Moving all config files to a config folder in React?
I've heard of cosmicconfig, which I think allows you to put most of your config files in a single .config folder. I've never used it though.
-
Create a Node.js command-line library with NRWL NX workspace
There is a fantastic library davidtheclark/cosmiconfig: Find and load configuration from a package.json property, rc file, or CommonJS module that does all the tedious work for you.
-
Rob Pike: “Dotfiles” being hidden is a UNIXv2 mistake (2012)
info on XDG: [the XDG spec](https://standards.freedesktop.org/basedir-spec/basedir-spec-...)
tools that respect XDG, for fellow JS CLI developers:
- https://github.com/davidtheclark/cosmiconfig Find and load configuration from a package.json property, rc file, or CommonJS module. [Check `searchPaths` to implement XDG spec compliance.](https://github.com/davidtheclark/cosmiconfig/issues/152)
- Sindre's libraries use [`env-paths`](https://github.com/sindresorhus/env-paths#pathsconfig) to get paths compliant with this.
- https://github.com/sindresorhus/conf simple config storing (maybe try [conf-cli](https://github.com/natzcam/conf-cli) to manipulate if needed) the successor to [configstore](https://github.com/sindresorhus/conf#how-is-this-different-f...)
- https://github.com/jonschlinkert/data-store conf like datastore but in the shclinkerverse
-
A Node.js configuration provider reading files, environment and arguments
cosmiconfig - Reads configuration from a file. It searches for many file types and file names, and even supports defining config in the package.json file. Very customizable, it's an awesome library very flexible both for the app developer and for the app user.
json5
- JSON5 – JSON for Humans
- Why the fuck are we templating YAML? (2019)
-
I pre-released my project "json-responder" written in Rust
JSON5 support
-
topoconfig: enhancing config declarations with graphs
Meanwhile, formats have been evolving (JSON5, YAML), config entry points are constantly changing. These fluctuations, fortunately, were covered by tools like the cosmiconfig.
-
That's a Lot of YAML
I think JSON5 is fairly close to this: https://json5.org
I reckon the only thing it's missing to be truly accessible to non-techies is that string values still need to be quoted, i.e. you can't have:
key: this is my value
(I'm definitely not saying it would be a good idea to allow quotes to be dropped, just that that's the only potential stumbling block I see for non-techies.)
-
XML is better than YAML
I believe that's JSON5.
https://github.com/json5/json5
It's my preferred configuration file format, it fixes all the problems I have with JSON (trailing commas, comments) without turning it into a mess full of gotchas like YAML.
- Fx – Terminal JSON Viewer
- What Is Wrong with TOML?
-
🚀 'GET' API in API Maker
JSON 5 support
-
TySON: a native go library that lets you use TypeScript as an embedded configuration language without depending on Node or V8
I would like to see mention of JSON5 which is 11 years its elder. For comments in JSON, JSON5 is a good starting point.
What are some alternatives?
main - Node.js mock server running live, interactive mocks in place of real APIs
Json.NET - Json.NET is a popular high-performance JSON framework for .NET
Commander.js - node.js command-line interfaces made easy
hjson-js - Hjson for JavaScript
data-store - Easily get, set and persist config data. Fast. Supports dot-notation in keys. No dependencies.
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
conf-cli - simple cli for configuration and key/value's + oclif plugin for configuration
toml - Tom's Obvious, Minimal Language
config - Helps you find, load, combine, autofill and validate configuration values of any kind
jsonnet - Jsonnet - The data templating language
misc - Experiment on maintaining a multi-project monorepository
sublime-hjson - Hjson support for Sublime Text