Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

wobsoriano/bnx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🐚 bnx

A simple 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.

Install

bun add bnx

Usage

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