Skip to content

Commit

Permalink
docs: mention $.o() alias
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Jun 3, 2022
1 parent 9e8a4f4 commit 22e1593
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# 🦪 zx-extra
[zx](https://github.com/google/zx) with some extras

## Requirements
* Node.js >= 16.0.0

## Install
```shell
# npm
Expand Down Expand Up @@ -65,7 +68,7 @@ const output = (await $.raw`${cmd} ${msg}`).toString().trim()
```

### `$.opt`
Returns `$` with the specified preset.
Returns `$` with the specified preset. Aliased for `$.o`.
```js
const $$ = $.opt({verbose: false, spawn: customSpawn})

Expand Down
1 change: 1 addition & 0 deletions src/main/js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ interface $ {
silent: $
preferLocal?: boolean
opt: (options: any) => $
o: (options: any) => $
}

export function createHook(opts?: $, name?: string, cb?: (p: ProcessPromise) => any, configurable?: boolean)

0 comments on commit 22e1593

Please sign in to comment.