ybiq
v21.0.3
Published
Useful command-line tools for Node.js project
Maintainers
Readme
ybiq
Useful command-line tools for Node.js project.
Install
npm install --save-dev ybiqUsage
CLI
Show the help for details:
ybiq --helpybiq init
The ybiq init command sets up your npm project.
ybiq run
The ybiq run command runs scripts in parallel.
# Run shell commands in parallel
ybiq run "echo hello" "echo world"
# Run npm scripts in parallel
ybiq run --npm lint:js lint:md lint:typesAPI
You also can use this package programmatically.
import { init, run } from "ybiq";
// Initialize project
await init({
// Default options
// cwd: process.cwd(),
// logger: msg => process.stdout.write(msg),
});
// Run scripts in parallel
await run({
scripts: ["echo hello", "echo world"],
// npm: false, // Set to true to run npm scripts
// labeler: (script) => script, // Customize script labels
// stdout: process.stdout,
// stderr: process.stderr,
});