txa

0.0.2 • Public • Published

txa

TypeScript for Automation, aka osascript -l TypeScript

TXA means "TypeScript for Automation" just like JXA: "JavaScript for Automation"

npm version npm downloads npm license

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

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

Package Sidebar

Install

npm i txa

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

8.28 kB

Total Files

7

Last publish

Collaborators

  • magicdawn