nbff-parser
Version:
A simple parser for the Netscape Bookmark file format
11 lines (8 loc) • 352 B
TypeScript
import type { BookmarkAttrs, FolderAttrs } from '../attrs.d.ts'
interface Handlers {
addBookmark: (title: string, attrs: BookmarkAttrs) => void
describeBookmark: (description: string) => void
closeFolder: () => void
openFolder: (title: string, attrs: FolderAttrs) => void
}
export function customParse<T>(text: string, handlers: Handlers): T