Options
All
  • Public
  • Public/Protected
  • All
Menu

Chunk

Take a chunk of the input and return it.

Configuration

interface IChunkConfig {
  start?: string | number;
  size?: string | number;
}

Example

const chunkMapperDefault = Mappers.chunk(); // Chunk: start:0|size:4

const chunkMapper7to11 = Mappers.chunk({ start: 7 }); // Chunk: start:7|size:4

const chunkMapper10to22 = Mappers.chunk({ start: 10, size: 12 }); // Chunk: start:10|size:12

Hierarchy

  • Chunk

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Chunk(__namedParameters?: object): Chunk
  • Parameters

    • Default value __namedParameters: object = {}
      • size: string | number
      • start: string | number

    Returns Chunk

Properties

name

name: string = "Chunk"

outputType

outputType: IOutputType = IOutputType.string

size

size: number = 4

start

start: number = 0

Static description

description: string = "Chunk"

Static id

id: string = "CHUNK"

Methods

config

transform

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc