txa
v0.0.2
Published
TypeScript for Automation, aka osascript -l TypeScript
Downloads
8
Maintainers
Readme
txa
TypeScript for Automation, aka
osascript -l TypeScript
TXA means "TypeScript for Automation" just like JXA: "JavaScript for Automation"
Install
$ pnpm add -g txa
Usage
txa <file>
bundle and execute a file, ES module can be used
use as Shebang
#!/usr/bin/env txa
txa build <file> <output>
bundle file to output, output can be a dir or a js file
Tips
types
# install
$ pnpm add -D @jxa/globle-type
then use reference
so you get editor intellisense
/// <reference types='@jxa/global-type' />
eslint
/* eslint-env applescript */
Changelog
License
the MIT License http://magicdawn.mit-license.org