vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
    • Overview
    • Reference
  • Usage
  1. Client
  2. /
  3. API Reference
  4. /
  5. @vltpkg/package-json

@vltpkg/package-json

package-json

@vltpkg/package-json

Manages reading package.json files.

Caches previously seen files and augments error messages for clarity.

Usage

JavaScript
import { PackageJson } from '@vltpkg/package-json'

const packageJson = new PackageJson()
const dir = process.cwd()
const pkg = await packageJson.read(dir)

PreviousReferenceNextReference

On this page

  • Usage

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now