@smarterlabs/omni-javascriptdeprecated

A plugin that allows you to run JavaScript in Omni-Directional Documents.

Usage no npm install needed!

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

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!`)
```