@buurman-feature-detectors/packagejson
Detects if packagejson
is installed to this current project.
Installing
npm i @buurman-feature-detectors/packagejson
Usage
import hasPackageJson from "@buurman-feature-detectors/packagejson";
hasPackageJson().then(installed => {
if (installed) {
return;
}
console.log("project has not package.json");
});