UNPKG

@buurman-feature-detectors/packagejson

Version:

Buurman feature detector for packagejson

24 lines (16 loc) 413 B
# `@buurman-feature-detectors/packagejson` Detects if `packagejson` is installed to this current project. ## Installing ```bash npm i @buurman-feature-detectors/packagejson ``` ## Usage ```typescript import hasPackageJson from "@buurman-feature-detectors/packagejson"; hasPackageJson().then(installed => { if (installed) { return; } console.log("project has not package.json"); }); ```