Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@types/cpx

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cpx

TypeScript definitions for cpx


Version published
Weekly downloads
7K
increased by24.52%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/cpx

Summary

This package contains type definitions for cpx (https://github.com/mysticatea/cpx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cpx.

index.d.ts

// Type definitions for cpx 1.5
// Project: https://github.com/mysticatea/cpx
// Definitions by: Alan Agius <https://github.com/alan-agius4>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import * as stream from "stream";
import { EventEmitter } from 'events';

export interface SyncOptions {
    /** remove files that copied on past before copy. */
    clean?: boolean | undefined;
    /** Follow symbolic links when copying from them. */
    dereference?: boolean | undefined;
    /** Copy empty directories which is matched with the glob. */
    includeEmptyDirs?: boolean | undefined;
    /** Preserve UID, GID, ATIME, and MTIME of files. */
    preserve?: boolean | undefined;
    /** Do not overwrite files on destination if the source file is older. */
    update?: boolean | undefined;
}

export interface AsyncOptions extends SyncOptions {
    /** Function that creates a `stream.Transform` object to transform each copying file. */
    transform?(filepath: string): stream.Transform[];
}

export interface WatchOptions extends AsyncOptions, SyncOptions {
    /** Flag to not copy at the initial time of watch. */
    initialCopy?: boolean | undefined;
}

export class Watcher extends EventEmitter {
    constructor(options: WatchOptions);
    open(): void;
    close(): void;
}

export function copy(source: string, dest: string, options?: AsyncOptions, callback?: (error: Error | null) => void): void;
export function copy(source: string, dest: string, callback?: (error: Error | null) => void): void;

export function copySync(source: string, dest: string, options?: SyncOptions): void;

export function watch(source: string, dest: string, options?: WatchOptions): Watcher;

Additional Details

  • Last updated: Thu, 08 Jul 2021 09:08:18 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Alan Agius.

FAQs

Package last updated on 08 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc