Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wobsoriano/bnx
zx inspired shell for Bun.
https://github.com/wobsoriano/bnx
bash bun cli shell
Last synced: about 1 month ago
JSON representation
zx inspired shell for Bun.
- Host: GitHub
- URL: https://github.com/wobsoriano/bnx
- Owner: wobsoriano
- License: mit
- Archived: true
- Created: 2022-08-02T20:14:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-21T07:14:32.000Z (10 months ago)
- Last Synced: 2024-09-21T05:31:53.624Z (about 2 months ago)
- Topics: bash, bun, cli, shell
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 124
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bun - bnx - zx inspired shell for Bun/Node. (Extensions / Utilities)
README
# 🐚 bnx
A simple [zx](https://github.com/google/zx) inspired shell for Bun.
> [!IMPORTANT]
> Starting with Bun v1.0.24, you no longer need this package as you can use the built-in [Bun Shell](https://bun.sh/blog/the-bun-shell).## Install
```bash
bun add bnx
```## Usage
```ts
import { $ } from 'bnx'const list = await $`ls -l`
const files = list.split('\n').slice(1).map((l) => l.split(/\s+/).at(-1))
console.log(files)const branch = await $`git branch --show-current`
await $`mkdir /tmp/${branch}`
```## License
MIT