bun-safe
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

/bun-safe/

    Package Sidebar

    Install

    npm i bun-safe

    Weekly Downloads

    19

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    17.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • antonio.presto