UNPKG

netscape-bookmark-export-converter

Version:

Converts Netscape Bookmark Format files used by popular web browsers to an array of objects containing individual bookmarks URI's and their respective folder tags.

33 lines (32 loc) 738 B
import { Bookmark } from './interfaces'; /** * Uses JSON stringify to santize undefinded and null branches * * @param obj * @returns */ export declare const sanitize: (obj: any) => object; /** * Removes all null values from the nested object * * @param currentValue * @returns */ export declare const noNull: (currentValue: any) => any; /** * Reduces nested JSON object to array * * @private * @param obj * @returns */ export declare const reduceToArray: (jsonDataArray: object[]) => Bookmark[]; /** * Uses Cheerio to convert bookmark file data to a stringified JSON Object * * @function * @private * @param fileData * @returns */ export declare const useCheerioToConvertStringToJson: (fileData: string) => object;