1.0.8 • Published 7 months ago

bun-safe v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Run scripts using Bun.js and perhaps install Bun first if necessary.

Usage

import { bunSafe } from 'bun-safe';
bunSafe('--version') // -> string;

Options and results:

type Options = {
  encoding?: 'utf8' | 'buffer';
  stdio?: 'overlapped' | 'pipe' | 'ignore' | 'inherit';
};

type DefaultOptions = { encoding: 'utf8'; stdio: 'inherit' };

type Result = string | Buffer;

Command line

After globally installed

bun-safe --version

Global install

pnpm i -g bun-safe

License:

MIT

1.0.8

7 months ago

1.0.7

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago