0.1.10 • Published 5 years ago

@smarterlabs/omni-javascript v0.1.10

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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