Skip to main content
Deno 2 is finally here 🎉️
Learn more

JsConf

Generate configuration with javascript

Screencast from 2022-12-22 12-09-40.webm

Usage

  • Create a config file in javascript, under $configDir/jsconf

  • Now you can run jsconf

deno run -r https://deno.land/x/jsconf/jsconf.ts
  • It will automaticly detect configs under the aforementioned location, or you can specify a config with --config
  • The next part is interactive, jsconf will print the generated configuration and ask to save it, and the saving location

Example

You can test drive with a helix example

deno run -r https://deno.land/x/jsconf/jsconf.ts --config https://deno.land/x/jsconf/helix_config_example.ts

TODO

  • Generate other formats then toml ? (lua ?)