Nunjucks Powers Mozilla

    @pnpm/read-package-json
    TypeScript icon, indicating that this package has built-in type declarations

    7.0.2 • Public • Published

    @pnpm/read-package-json

    Read a package.json

    npm version

    Installation

    pnpm add @pnpm/read-package-json

    Usage

    import readPackageJson from '@pnpm/read-package-json'
    
    const pkgJson = await readPackageJson('package.json')

    API

    default: readPackageJson(path): Promise<PackageManifest>

    Arguments

    • path - String - path to the package.json

    fromDir(path): Promise<PackageManifest>

    Arguments

    • path - String - path to the directory with the package.json

    License

    MIT

    Install

    npm i @pnpm/read-package-json

    DownloadsWeekly Downloads

    228,478

    Version

    7.0.2

    License

    MIT

    Unpacked Size

    6.11 kB

    Total Files

    6

    Last publish

    Collaborators

    • pnpmuser
    • zkochan