🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
34
node_modules/run-applescript/readme.md
generated
vendored
Normal file
34
node_modules/run-applescript/readme.md
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# run-applescript
|
||||
|
||||
> Run AppleScript and get the result
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install run-applescript
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import {runAppleScriptAsync} from 'run-applescript';
|
||||
|
||||
const result = await runAppleScriptAsync('return "unicorn"');
|
||||
|
||||
console.log(result);
|
||||
//=> 'unicorn'
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
### runAppleScriptAsync(script)
|
||||
|
||||
Returns a `Promise<string>` with the script result.
|
||||
|
||||
### runAppleScriptSync(script)
|
||||
|
||||
Returns a `string` with the script result.
|
||||
|
||||
## Related
|
||||
|
||||
- [run-jxa](https://github.com/sindresorhus/run-jxa) - Run JXA code and get the result
|
||||
Loading…
Add table
Add a link
Reference in a new issue