MCPcopy Create free account
hub / github.com/sindresorhus/execa / getSplitLinesGenerator

Function getSplitLinesGenerator

lib/transform/split.js:2–4  ·  view source on GitHub ↗
(binary, preserveNewlines, skipped, state)

Source from the content-addressed store, hash-verified

1// Split chunks line-wise for generators passed to the `std*` options
2export const getSplitLinesGenerator = (binary, preserveNewlines, skipped, state) => binary || skipped
3 ? undefined
4 : initializeSplitLines(preserveNewlines, state);
5
6// Same but for synchronous methods
7export const splitLinesSync = (chunk, preserveNewlines, objectMode) => objectMode

Callers 2

getGeneratorsFunction · 0.90
addInternalGeneratorsFunction · 0.90

Calls 1

initializeSplitLinesFunction · 0.85

Tested by

no test coverage detected