Skip to content

antoniopresto/bun-safe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published