@smarterlabs/omni-plugin-json

A plugin that allows you to use json config blocks in Omni-Directional Documents.

Usage no npm install needed!

<script type="module">
  import smarterlabsOmniPluginJson from 'https://cdn.skypack.dev/@smarterlabs/omni-plugin-json';
</script>

README

Omni Yaml JSON

A plugin that allows you to use json config blocks in Omni-Directional Documents.

Installation

npm install @smarterlabs/omni-plugin-json --save

or

yarn add @smarterlabs/omni-plugin-json

Usage

import Omni  from '@smarterlabs/omni'
import omniJSON from '@smarterlabs/omni-plugin-json'

const omni = new Omni({
  input: `src`,
  output: `dist`,
  plugins: [
    omniJSON(),
  ],
})

omni.watch()

Example


```json config
{
    "interpolate": {
        "_scope_": "scope-name"
    }
}
```