New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

detect-jxa

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-jxa

A function to detect whether the current JavaScript environment is macOS's JavaScript for Automation.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

detect-jxa

This is a simple micro-package to provide a function to determine if the current JavaScript environment is the JavaScript for Automation (‘JXA’) environment provided on Mac OS X / macOS versions 10.10 (‘Yosemite’) and later. (See also: JXA-Cookbook)

This allows you to branch behaviour depending on whether JXA's globals will be available or not:

const onJXA = require('detect-jxa')()

if (onJXA)
   require('jxa-async/shim')

Installation

  • DOCME

{{#function name="detectJXA"}} {{>header~}} {{>body~}} {{/function}}

License

© 2017 ELLIOTTCABLE. detect-jxa is available under the ISC license.

Keywords

FAQs

Package last updated on 08 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc