Installation
npm install --save @types/lockfile-info
Summary
This package contains type definitions for lockfile-info (https://github.com/ljharb/lockfile-info).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lockfile-info.
index.d.ts
interface LockfileInfo {
hasPackageJSON: boolean;
hasNodeModulesDir: boolean;
hasLockfile: boolean;
hasPackageLock: boolean;
hasShrinkwrap: boolean;
lockfileVersion: typeof NaN | 1 | 2 | 3; // https://github.com/microsoft/TypeScript/issues/47347
}
/** @async */
declare function lockfileInfo(cwd?: string): Promise<LockfileInfo>;
export = lockfileInfo;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:38 GMT
- Dependencies: none
Credits
These definitions were written by Jordan Harband.