2.0.0 • Published 1 year ago
has-script v2.0.0
If I should maintain this repo, please ⭐️
DM me on Twitter if you have questions or suggestions.
Installation
yarn add has-script
npm install has-script
pnpm add has-script
Usage
import { hasScript, hasScriptLike } from "has-script";
// Returns true if the exact match exists in the package.json script field.
function hasScript(name: string): Promise<boolean>;
// All strings that match the given RegExp.
function hasScriptLike(regex: RegExp): Promise<string[]>;
- file-structure: Define and manage file structures
- autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.
MIT - The MIT License