JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 41621
  • Score
    100M100P100Q135069F
  • License MIT

TypeScript definitions for split

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/split) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    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.