3.0.0 • Published 3 years ago

is-jxa v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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.

Related

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