# @types/ncp

> TypeScript definitions for ncp

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

## Install

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

## 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 | 2.0.8 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51438 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 2.0.8 (latest) — 2023-11-07
- 2.0.5 (ts3.6) — 2021-07-07
- 2.0.4 (ts3.0) — 2020-05-15
- 2.0.3 (ts2.0) — 2019-11-04
- 2.0.7 — 2023-10-18
- 2.0.6 — 2023-09-23
- 2.0.2 — 2019-10-09
- 2.0.1 — 2017-08-21
- 2.0.0 — 2017-01-04
- 0.5.29 — 2016-09-19
- 0.5.28 — 2016-07-14
- 0.5.27-alpha — 2016-07-08
- 0.5.26-alpha — 2016-07-04
- 0.5.25-alpha — 2016-07-02
- 0.5.24-alpha — 2016-07-01
- … 5 more at https://npm.io/package/@types/ncp/versions

## README

# Installation
> `npm install --save @types/ncp`

# Summary
This package contains type definitions for ncp (https://github.com/AvianFlu/ncp).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ncp.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ncp/index.d.ts)
````ts
/// <reference types="node" />
import * as fs from "fs";

declare namespace ncp {
    interface File {
        name: string;
        mode: number;

        /** Accessed time */
        atime: Date;

        /** Modified time */
        mtime: Date;
    }

    interface Options {
        filter?: RegExp | ((filename: string) => boolean) | undefined;
        transform?: ((read: NodeJS.ReadableStream, write: NodeJS.WritableStream, file: File) => void) | undefined;
        clobber?: boolean | undefined;
        dereference?: boolean | undefined;
        stopOnErr?: boolean | undefined;
        errs?: fs.PathLike | undefined;
        limit?: number | undefined;
    }
}

declare const ncp: {
    (source: string, destination: string, callback: (err: Error[] | null) => void): void;
    (
        source: string,
        destination: string,
        options: ncp.Options & { stopOnErr: true },
        callback: (err: Error | null) => void,
    ): void;
    (
        source: string,
        destination: string,
        options: ncp.Options & { errs?: undefined },
        callback: (err: Error[] | null) => void,
    ): void;
    (
        source: string,
        destination: string,
        options: ncp.Options & { errs: fs.PathLike },
        callback: (err: fs.WriteStream | null) => void,
    ): void;
    (
        source: string,
        destination: string,
        options: ncp.Options,
        callback: (err: Error | Error[] | fs.WriteStream | null) => void,
    ): void;

    ncp: typeof ncp;

    /**
     * **NOTE:** This function provides design-time support for util.promisify.
     *
     * It does not exist at runtime.
     */
    __promisify__(source: string, destination: string, options?: ncp.Options): Promise<void>;
};

export = ncp;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/node](https://npmjs.com/package/@types/node)

# Credits
These definitions were written by [Bart van der Schoor](https://github.com/bartvds), [Benoit Lemaire](https://github.com/belemaire), and [ExE Boss](https://github.com/ExE-Boss).

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