UNPKG

sflow

Version:

sflow is a powerful and highly-extensible library designed for processing and manipulating streams of data effortlessly. Inspired by the functional programming paradigm, it provides a rich set of utilities for transforming streams, including chunking, fil

15 lines (13 loc) 356 B
import type { FlowSource } from "./FlowSource"; import { sflow } from "./sflow"; /** sflow Template */ export function sfTemplate( tsa: TemplateStringsArray, ...args: FlowSource<string>[] ): sflow<string> { return sflow( ...tsa.map((str) => [sflow([str]), args.shift() || ([] as string[])]).flat() ); } // alias export const sfT = sfTemplate;