@buurman-feature-detectors/packagejson
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@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");
});

Package Sidebar

Install

npm i @buurman-feature-detectors/packagejson

Weekly Downloads

2

Version

0.1.0

License

SEE LICENSE IN LICENSE.md

Unpacked Size

11.6 kB

Total Files

8

Last publish

Collaborators

  • jewetnitg