dxcfg
eps
dxcfg | eps | |
---|---|---|
1 | 1 | |
28 | 12 | |
- | - | |
0.0 | 0.0 | |
over 2 years ago | about 1 year ago | |
TypeScript | Go | |
Apache License 2.0 | GNU Affero General Public License v3.0 |
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.
dxcfg
eps
-
The Perfect Configuration Format? Try TypeScript
I think parsing YAML or JSON into typed structures is the easier way to go. I e.g. do that in Golang using a little form validation and coercion library I've written. The end result is a nested, strongly typed data structure. Here's an example: https://github.com/iris-connect/eps/blob/master/settings.go (the accompanying form validation configuration: https://github.com/iris-connect/eps/blob/master/forms/settin...)
In my experience, a lot of the validation needs to be done at runtime anyway as type checking alone won't allow you to e.g. validate if a string is a valid regular expression. Also, I think using TypeScript for configuration requires you to compile & interpret the configuration file in order to check it and obtain the data values. Not sure if I like that as it requires bundling the Typescript compiler with your program.
What are some alternatives?
FTP-Deploy-Action - Deploys a GitHub project to a FTP server using GitHub actions
vm2 - Advanced vm/sandbox for Node.js
jk - Configuration as Code with ECMAScript
dhall-lang - Maintainable configuration files
node-config - Node.js Application Configuration
deno - A modern runtime for JavaScript and TypeScript.
json5 - JSON5 — JSON for Humans
TypeScript - TypeScript is a superset of JavaScript that compiles to clean JavaScript output.