cep-lib

JS wrapper functions to aid in the development of CEP plugins.

Usage no npm install needed!

<script type="module">
  import cepLib from 'https://cdn.skypack.dev/cep-lib';
</script>

README

CircleCI NPM version NPM downloads License Issues

cep-lib is a set of JS wrapper functions to aid in the development of CEP plugins.

Get Started

npm install --save cep-lib
import { evalScript, getCSInterface } from 'cep-lib/csinterface'
import { deleteFile } from 'cep-lib/cep'

const result = evalScript('extendScriptFunction()')
console.log(result)

const rawCSInterface = getCSInterface()

deleteFile('/tmp/foo')

Note: It is not recommended to import the cep-lib root. If you do so, you will receive a warning message. Each library has been packaged separately in order to allow developers to only import what they need. Also note that the libraries do not have default exports.

Features

  • Provides a wrapper around the CSInterface library, while still providing access to the underlying library.
  • Provides a wrapper around certain CEP-related functions (just some IO functions for now).