UNPKG

@backtrace/node

Version:
11 lines (10 loc) 557 B
import { ChunkSplitter } from './chunkifier.js'; /** * Splits data into chunks with maximum length. * @param maxLength Maximum length of one chunk. * @param wholeLines Can be one of: * * `"skip"` - if last line does not fit in the chunk, it will be skipped entirely * * `"break"` - if last line does not fit in the chunk, it will be broken into two new chunks * * `false` - last line will be always broken into old and new chunk */ export declare function lengthChunkSplitter(maxLength: number, wholeLines?: 'skip' | 'break' | false): ChunkSplitter;