@types/split

TypeScript definitions for split

  • Types
  • ESM
  • CJS
License
MIT
Install Size
3.8 kB(2.5 MB)
Vulns
0
Published

Get started

$npm install @types/split
$pnpm add @types/split
$yarn add @types/split
$bun add @types/split
$deno add npm:@types/split
$vlt install @types/split
$vp add @types/split
# Usually installed as a dev dependency
$npm install -D @types/split
$pnpm add -D @types/split
$yarn add -D @types/split
$bun add -d @types/split
$deno add -D npm:@types/split
$vlt install -D @types/split
$vp add -D @types/split

Weekly DownloadsAcross all versions

Versions

View all versions
1.0.5
latestts4.5ts4.6ts4.7ts4.8ts4.9ts5.0ts5.1ts5.2ts5.3ts5.4ts5.5ts5.6ts5.7ts5.8ts5.9ts6.0
1.0.2
ts4.1ts4.2ts4.3ts4.4
1.0.1
ts3.9ts4.0
1.0.0
ts2.0ts2.1ts2.2ts2.3ts2.4ts2.5ts2.6ts2.7ts2.8ts2.9ts3.0ts3.1ts3.2ts3.3ts3.4ts3.5ts3.6ts3.7ts3.8

Readme

Installation

npm install --save @types/split

Summary

This package contains type definitions for split (https://github.com/dominictarr/split).

Details

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

index.d.ts

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

import { ThroughStream } from "through";

// doc-strings taken from https://github.com/dominictarr/split, used under MIT license

interface SplitOptions {
    maxLength?: number;
    /**
     * By default the last buffer not delimited by a newline or `matcher` will be emitted.
     * To prevent this set `options.trailing` to `false`.
     */
    trailing?: boolean;
}

declare function split(matcher?: any, mapper?: any, options?: SplitOptions): ThroughStream;

export = split;
Additional Details

Credits

These definitions were written by Marcin Porębski.