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) 354 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.flatMap((str) => [sflow([str]), args.shift() || ([] as string[])]), ); } // alias export const sfT = sfTemplate;