runtime-config

watch for changes, only allow for changes to variables watched

Usage no npm install needed!

<script type="module">
  import runtimeConfig from 'https://cdn.skypack.dev/runtime-config';
</script>

README

runtime-config

NPM Version Build Status Coverage Status

This module attempts to provide a sane subset of the runtime.json functionality that used to be found in config but that is now deprecated.

in particular

  • only watched attributes are allowed to be changed
  • does not support modifying the configuration from within the app
  • only one code path to access values the watch style