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