# @types/yarnpkg__lockfile

> TypeScript definitions for @yarnpkg/lockfile

Latest version **1.1.9** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/yarnpkg__lockfile
pnpm add @types/yarnpkg__lockfile
yarn add @types/yarnpkg__lockfile
bun add @types/yarnpkg__lockfile
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.9 |
| Published | 2023-11-07 |
| First published | 2019-07-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51466 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/yarnpkg__lockfile
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yarnpkg__lockfile
- npm.io page: https://npm.io/package/@types/yarnpkg__lockfile

## Recent versions

- 1.1.9 (latest) — 2023-11-07
- 1.1.6 (ts4.3) — 2023-05-23
- 1.1.5 (ts3.6) — 2021-07-02
- 1.1.4 (ts3.2) — 2020-09-26
- 1.1.3 (ts2.0) — 2019-08-23
- 1.1.8 — 2023-10-18
- 1.1.7 — 2023-09-25
- 1.1.2 — 2019-08-22
- 1.1.1 — 2019-08-19
- 1.1.0 — 2019-07-26

## README

# Installation
> `npm install --save @types/yarnpkg__lockfile`

# Summary
This package contains type definitions for @yarnpkg/lockfile (https://github.com/yarnpkg/yarn/tree/master/packages/lockfile).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yarnpkg__lockfile.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yarnpkg__lockfile/index.d.ts)
````ts
export interface Dependency {
    [packageName: string]: string;
}

export interface FirstLevelDependency {
    version: string;
    resolved?: string | undefined;
    dependencies?: Dependency | undefined;
}

export interface LockFileObject {
    [packageName: string]: FirstLevelDependency;
}

export function parse(
    file: string,
    fileLoc?: string,
): {
    type: "success" | "merge" | "conflict";
    object: LockFileObject;
};

export function stringify(
    json: any,
    noHeader?: boolean,
    enableVersions?: boolean,
): string;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Eric Wang](https://github.com/fa93hws).

---
_Source: https://npm.io/package/@types/yarnpkg__lockfile · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
