# is-jxa

> Check if your code is running in a JXA environment

Latest version **3.0.0** (published 2021-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-jxa
pnpm add is-jxa
yarn add is-jxa
bun add is-jxa
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2021-09-18 |
| First published | 2017-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | ^12.20.0 \|\| ^14.13.1 \|\| >=16.0.0 |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 33 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | jxa, macos, is, detect, check, process, environment, automation, mac, osascript |

## Links

- npm: https://www.npmjs.com/package/is-jxa
- Repository: https://github.com/sindresorhus/is-jxa
- Homepage: https://github.com/sindresorhus/is-jxa#readme
- Issues: https://github.com/sindresorhus/is-jxa/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/is-jxa

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2021-09-18
- 2.0.0 — 2019-04-06
- 1.0.0 — 2017-12-06

## README

# is-jxa

> Check if your code is running in a [JXA](https://github.com/JXA-Cookbook/JXA-Cookbook) environment

*JXA is JavaScript for Automation on macOS.*

## Install

```sh
npm install is-jxa
```

## Usage

```js
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](https://github.com/sindresorhus/run-jxa) - Run JXA code and get the result

---
_Source: https://npm.io/package/is-jxa · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
