https://github.com/magicdawn/txa
TypeScript for Automation, aka osascript -l TypeScript
https://github.com/magicdawn/txa
Last synced: 6 months ago
JSON representation
TypeScript for Automation, aka osascript -l TypeScript
- Host: GitHub
- URL: https://github.com/magicdawn/txa
- Owner: magicdawn
- License: mit
- Created: 2022-11-07T05:44:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T07:52:43.000Z (almost 2 years ago)
- Last Synced: 2025-03-17T20:38:40.363Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 338 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# txa
> TypeScript for Automation, aka `osascript -l TypeScript`
>
> TXA means "TypeScript for Automation" just like [JXA](https://github.com/JXA-Cookbook/JXA-Cookbook/wiki): "JavaScript for Automation"
[](https://www.npmjs.com/package/txa)
[](https://www.npmjs.com/package/txa)
[](http://magicdawn.mit-license.org)
## Install
```sh
$ pnpm add -g txa
```
## Usage
### `txa `
bundle and execute a file, ES module can be used
use as Shebang
```ts
#!/usr/bin/env txa
```
### `txa build `
bundle file to output, output can be a dir or a js file
## Tips
### types
```sh
# install
$ pnpm add -D @jxa/globle-type
```
then use `reference` so you get editor intellisense
```ts
///
```
### eslint
```js
/* eslint-env applescript */
```
## Changelog
[CHANGELOG.md](CHANGELOG.md)
## License
the MIT License http://magicdawn.mit-license.org