@types/split-file
TypeScript icon, indicating that this package has built-in type declarations

2.3.3 • Public • Published

Installation

npm install --save @types/split-file

Summary

This package contains type definitions for split-file (https://github.com/tomvlk/node-split-file#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/split-file.

index.d.ts

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

import * as BluebirdPromise from "bluebird";

/**
 * Split file into number of parts
 * @param file
 * @param parts
 * @param destination
 */
export function splitFile(file: string, parts: number, destination?: string): BluebirdPromise<string[]>;

/**
 * Split file into multiple parts based on max part size given
 * @param file
 * @param maxSize max part size in BYTES!
 * @param destination
 */
export function splitFileBySize(file: string, maxSize: number, destination?: string): BluebirdPromise<string[]>;

/**
 * Merge input files to output file.
 * @param inputFiles
 * @param outputFile
 */
export function mergeFiles(inputFiles: string[], outputFile: string): BluebirdPromise<string[]>;

Additional Details

Credits

These definitions were written by Dolan Miu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/split-file

Weekly Downloads

100

Version

2.3.3

License

MIT

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • types