Catalog npm
Back to packageRELEASE DETAILS

0.1.5

npm

@0x-jerry/load-pkg

Detect the closest `package.json` recursively.

Published18 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-OsG9WZfCDzLaIC5t7HNHAYdpvZEf5efs/+fLEXsbOQr3IdZyMuWA27utAOsrNwTfl1BCgr6+r048ZyMd9YE72Q==",
  "shasum": "4979fa1712bf2395b038c27626052674ba0f119f",
  "tarball": "https://registry.npmjs.org/@0x-jerry/load-pkg/-/load-pkg-0.1.5.tgz",
  "fileCount": 5,
  "unpackedSize": 4780,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIECGVpw/7wiY+oKV6e1+VHJq9NUMXa6G31u0lJ24tXHxAiEAmwCh6VFIhnWf0k+XqR10Odri5cIAIMdNEagzPutli/w="
    }
  ]
}

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:26ce6c5cc161ef84ecd19d5c6a8eedd5b728055ba9fa00c14df25d5d24e7e7af

Other collected versions

0.1.415 May0.1.315 May0.1.226 Apr0.1.126 Apr0.0.126 AprView all collected versions →