# @types/npm-packlist

> TypeScript definitions for npm-packlist

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

## Install

```sh
npm install @types/npm-packlist
pnpm add @types/npm-packlist
yarn add @types/npm-packlist
bun add @types/npm-packlist
```

## 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 | 7.0.3 |
| Published | 2023-11-07 |
| First published | 2018-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51422 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [@types/ignore-walk](https://npm.io/package/@types/ignore-walk.md) *
- [@types/npmcli__arborist](https://npm.io/package/@types/npmcli__arborist.md) *

## Recent versions

- 7.0.3 (latest) — 2023-11-07
- 7.0.0 (ts4.3) — 2022-12-31
- 3.0.0 (ts3.9) — 2022-03-02
- 1.1.2 (ts3.6) — 2021-07-07
- 1.1.1 (ts2.1) — 2019-02-13
- 7.0.2 — 2023-10-18
- 7.0.1 — 2023-09-23
- 1.1.0 — 2018-02-13

## README

# Installation
> `npm install --save @types/npm-packlist`

# Summary
This package contains type definitions for npm-packlist (https://github.com/npm/npm-packlist).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-packlist.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/npm-packlist/index.d.ts)
````ts
import type { Node } from "@npmcli/arborist";
import type { Walker, WalkerOptions, WalkerSync } from "ignore-walk";

declare function packlist(tree: Node, options?: packlist.Options): Promise<string[]>;
declare function packlist<T>(
    tree: Node,
    options: packlist.Options | undefined,
    callback: (result: string[]) => T,
): Promise<T>;

declare namespace packlist {
    interface Options extends WalkerOptions {
        parent?: Walker | WalkerSync | null | undefined;
        /** Directory to walk recusively. Defaults to `process.cwd()`. */
        path?: string | undefined;
    }
}

export = packlist;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/ignore-walk](https://npmjs.com/package/@types/ignore-walk), [@types/npmcli__arborist](https://npmjs.com/package/@types/npmcli__arborist)

# Credits
These definitions were written by [Klaus Meinhardt](https://github.com/ajafff), and [Florian Imdahl](https://github.com/ffflorian).

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