@types/move-concurrently

  • Version 1.0.2
  • Published
  • 4.23 kB
  • No dependencies
  • MIT license

Install

npm i @types/move-concurrently
yarn add @types/move-concurrently
pnpm add @types/move-concurrently

Overview

TypeScript definitions for move-concurrently

Index

Functions

function move

move: <T extends PromiseLike<void> = Promise<void>>(
from: string,
to: string,
opts?: move.Options<T>
) => T;
  • Recursively moves from to to and resolves its promise when finished. If to already exists then the promise will be rejected with an EEXIST error.

Interfaces

interface Options

interface Options<T extends PromiseLike<void> = Promise<void>> {}

    property fs

    fs?: any;
    • (Default: require('fs')) The filesystem module to use. Can be used to use graceful-fs or to inject a mock.

    property getuid

    getuid?: any;
    • (Default: process.getuid) A function that returns the current UID. Used to inject a mock.

    property isWindows

    isWindows?: boolean;
    • (Default: process.platform === 'win32') If true enables Windows symlink semantics. This requires an extra stat to determine if the destination of a symlink is a file or directory. If symlinking a directory fails then we'll try making a junction instead.

    property maxConcurrency

    maxConcurrency?: number;
    • (Default: 1) The maximum number of concurrent copies to do at once.

    property Promise

    Promise?: new (...args: any[]) => T;
    • (Default: global.Promise) The promise implementation to use, defaults to Node's.

    property writeStreamAtomic

    writeStreamAtomic?: any;
    • (Default: require('fs-write-stream-atomic')) The implementation of writeStreamAtomic to use. Used to inject a mock.

    Package Files (1)

    Dependencies (0)

    No dependencies.

    Dev Dependencies (0)

    No dev dependencies.

    Peer Dependencies (0)

    No peer dependencies.

    Badge

    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/move-concurrently.

    • Markdown
      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/move-concurrently)
    • HTML
      <a href="https://www.jsdocs.io/package/@types/move-concurrently"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>