@cjser/is-jxa
v3.0.0-cjser.2
Published
Check if your code is running in a JXA environment
Maintainers
Readme
is-jxa
Check if your code is running in a JXA environment
JXA is JavaScript for Automation on macOS.
Install
npm install is-jxaUsage
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
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/is-jxa
