npm.io
3.0.0 • Published 5 years ago

is-jxa

Licence
MIT
Version
3.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
33

is-jxa

Check if your code is running in a JXA environment

JXA is JavaScript for Automation on macOS.

Install

npm install is-jxa

Usage

import isJxa from 'is-jxa';

if (isJxa) {
	// For example, polyfill something here when it's in a JXA environment
}

You need to transpile the code for an JXA environment as it does not support ESM.

  • run-jxa - Run JXA code and get the result

Keywords