Catalog npm
Back to packageRELEASE DETAILS

0.1.3

npm

@0x-jerry/load-pkg

Detect the closest `package.json` recursively.

Published15 May 2024
Direct dependencies6
Transitive dependenciesNot calculated

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.

Declared dependencies 6

Native requirements
6 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x-jerry/x-release
Environment
{
  "local_name": "@0x-jerry/x-release",
  "alias": false,
  "peer_metadata": null
}
^2.2.0development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^20.12.12development
c8
Environment
{
  "local_name": "c8",
  "alias": false,
  "peer_metadata": null
}
^9.1.0development
tsup
Environment
{
  "local_name": "tsup",
  "alias": false,
  "peer_metadata": null
}
^8.0.2development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^5.4.5development
vitest
Environment
{
  "local_name": "vitest",
  "alias": false,
  "peer_metadata": null
}
^1.6.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-4J6obD7kAGKbCYHXy8Cz6O71ubXDBFzsyZzHIDSQyjvlO2A4jh40vg7kFei3rPh3RC2PdV6NOqrOTEFHx+iEIQ==",
  "shasum": "75d1f507e95ead5e701d1f403e0d5c26a5640f01",
  "tarball": "https://registry.npmjs.org/@0x-jerry/load-pkg/-/load-pkg-0.1.3.tgz",
  "fileCount": 3,
  "unpackedSize": 2769,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCaqqTI7UElNl6fSCWzsIYID/6+ASySGefYLVjmh7MZYwIhAN9mh5FzH7wSLQtuUwRwxCdZyCQDFKY3H3RoZHgfGl4q"
    }
  ]
}

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_version:f944c413c3ab437e77a6be8c434d2a1317cdb02fea5bca56ebbe40b7bee1c1e9

Other collected versions

0.1.518 May0.1.415 May0.1.226 Apr0.1.126 Apr0.0.126 AprView all collected versions →