bun-safe
v1.0.8
Published
Run scripts using Bun.js and perhaps install Bun first if necessary.
Downloads
68
Maintainers
Readme
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 --versionGlobal install
pnpm i -g bun-safeLicense:
MIT
