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
16 lines (14 loc) • 374 B
text/typescript
import type { FlowSource } from "./FlowSource";
import { sflow } from "./sflow";
import { sf } from ".";
/** sflow Template */
export function sfTemplate(
tsa: TemplateStringsArray,
...args: FlowSource<string>[]
): sflow<string> {
return sf(
...tsa.map((str) => [sf([str]), args.shift() || ([] as string[])]).flat()
);
}
// alias
export const sfT = sfTemplate;