@smarterlabs/omni-plugin-javascript

0.1.12 • Public • Published

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

Package Sidebar

Install

npm i @smarterlabs/omni-plugin-javascript

Weekly Downloads

1

Version

0.1.12

License

MIT

Unpacked Size

5.33 kB

Total Files

4

Last publish

Collaborators

  • ken85rose