ozone-config

Ozone config loader

Usage no npm install needed!

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

README

NPM version

ozone-config

OzoneFormat

Expose Ozone media format and priority. You can use webpack alias to overwrite this package in you project.

OzoneConfig

!! WARNING !! this class is deprecated. !! Expose ozone API configuration. Configuration is loaded from ./conf.ozone.json

Usage

Import from source

<script src="../dist/ozone-config.js"></script>
<script>
  OzoneConfig().get().then((config) => {
      // Do something with the config
  });
</script>

Using es6 import

import * as Config from 'ozone-config';
const configPromise = Config.OzoneConfig.get();

Install

$ npm install --save ozone-config