Skip to content

@vltpkg/package-json

Classes

PackageJson

Defined in: index.ts:8

Constructors

new PackageJson()
new PackageJson(): PackageJson
Returns

PackageJson

Methods

fix()
fix(manifest): void

Defined in: index.ts:101

Parameters
manifest

Manifest

Returns

void

read()
read(dir, __namedParameters): Manifest

Defined in: index.ts:28

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
reload

boolean

Returns

Manifest

save()
save(manifest): void

Defined in: index.ts:87

Parameters
manifest

Manifest

Returns

void

write()
write(dir, manifest): void

Defined in: index.ts:61

Parameters
dir

string

manifest

Manifest

Returns

void