Catalog npm
PACKAGE EXPLORERView in registry

@0x-jerry/load-pkg

npm

Detect the closest `package.json` recursively.

Versions collected6
Direct dependencies6From release 0.1.5
Last observed20 Oct, 22:16 UTC

README

Current package documentation

Load Pkg

Detect the closest package.json recursively.

Example

const pkgFile = await loadPkg(path.join(__dirname, 'example/packages/pkg1'))
console.log(pkgFile)

output:

{
  "path": "<root-path>/example/packages/pkg1/package.json",
  "config": {}, // content of `package.json`
  "monorepo": false,
  "parent": {
    "path": "<root-path>/example/package.json",
    "config": {}, // content of `package.json`
    "monorepo": true,
    "parent": {
      "path": "<root-path>/package.json",
      "config": {}, // content of `package.json`
      "monorepo": false
    }
  }
}

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 6

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.5Registry latest18 May 20246
0.1.415 May 20246
0.1.315 May 20246
0.1.226 Apr 20226
0.1.126 Apr 20226
0.0.126 Apr 20226

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0x-jerry/load-pkg

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c44450f587716bae8f3c4dba9cd8cee7ff6a3f997ce3c62c97e6fedf80920977