0.2.2 • Published 4 years ago

firefox-profile-reader v0.2.2

Weekly downloads
12
License
-
Repository
-
Last release
4 years ago

firefox-profile-reader

Two functions are exported

export async function getHistory(
  query: string,
  limit: number = 15,
  version: string = 'default'
)

export async function getBookmark(version: string = 'default')

getHistory

Example:

const result = await getHistory(query, limit, version);
const resultList = result
  .split('\n')
  .map(line => line.split('|'))
  .map(([url, date, frecency, ...titleParts]) => ({
    url,
    date,
    frecency,
    title: titleParts.join('|'),
  }));

This uses binary from https://www.sqlite.org/download.html, currently only the one for MacOS, if you need another binary, please PR.

0.2.2

4 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago