is-jxa
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i is-jxa

Weekly Downloads

3

Version

3.0.0

License

MIT

Unpacked Size

3.04 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus