プロジェクトJXA
概要
TypeScript/Node.js向けのJavaScript for Automation(JXA)パッケージです。
その他のプロジェクトできること
- Integration JXA with TypeScript
- See @jxa/run and @jxa/repl
- See @jxa/types and @jxa/global-type
計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルJXA 
JavaScript for Automation(JXA) packages.
Features
- Integration JXA with TypeScript
- Run JXA from Node.js
- Support Auto complete for editor/IDE via TypeScript definition file(
.d.ts)- See @jxa/types and @jxa/global-type
Packages
Example
If you want to improve your editor for JXA, use @jxa/global-type.
You can just import @jxa/global-type and you can introduce typing and auto complete for JXA.
:memo: Your editor should support TypeScript. For more details, see TypeScript Editor Support
// Your .ts file require @jxa/global-type
import "@jxa/global-type";
// your JXA application
const userName = Application("System Events").currentUser().name();
If you want to run JXA from Node.js, use @jxa/run.
import "@jxa/global-type";
import { run } from "@jxa/run";
export const currentUserName = () => {
// This callback function is run as JXA
return run(() => {
const sys = Application("System Events");
return sys.currentUser().name();
});
};
// Main code is Node.js
export const example = async () => {
const userName = await currentUserName();
return `User: ${userName}`;
};
For more details, see example/.
Contributing
Issue and PR is always welcome!
For more details, see CONTRIBUTING guide.
関連プロジェクトを探す
読み込み中…
