UNPKG

create-octokit-project

Version:

`npm init` script to create a new Octokit JS module (plugin, authentication strategy, or otherwise)

10 lines (7 loc) 230 B
export { command }; import { execa } from "execa"; async function command(cmd) { console.log(`$ ${cmd}`); const { stdout, stderr } = await execa(cmd, { shell: true }); return [stdout, stderr].filter(Boolean).join("\n"); }