Skip to content

Modules | @vltpkg/package-json

Classes

PackageJson

Constructors

new PackageJson()
new PackageJson(): PackageJson
Returns

PackageJson

Methods

read()
read(dir, __namedParameters): Manifest

Reads and parses contents of a package.json file at a directory dir. reload will optionally skip reading from the cache when set to true.

Parameters

dir: string

__namedParameters = {}

__namedParameters.reload?: boolean

Returns

Manifest

Defined in

index.ts:27

save()
save(manifest): void
Parameters

manifest: Manifest

Returns

void

Defined in

index.ts:85

write()
write(dir, manifest): void
Parameters

dir: string

manifest: Manifest

Returns

void

Defined in

index.ts:60