UNPKG

subtitle

Version:

Stream-based library for parsing and manipulating subtitles

8 lines (6 loc) 241 B
import { map, FormatOptions, Node } from '.' import { Formatter } from './Formatter' export const stringify = (options: FormatOptions) => { const formatter = new Formatter(options) return map((chunk: Node) => formatter.format(chunk)) }