Omni JavaScript Plugin
A plugin that allows you to run JavaScript in Omni-Directional Documents.
Installation
npm install @smarterlabs/omni-plugin-javascript --save
or
yarn add @smarterlabs/omni-plugin-javascript
Usage
import Omni from '@smarterlabs/omni'
import omniJS from '@smarterlabs/omni-plugin-javascript'
const omni = new Omni({
input: `src`,
output: `dist`,
plugins: [
omniJS(),
],
})
omni.watch()
Example
```js run
console.log(`Omni file processed!`)
```