# firefox-profile-reader

> Two functions are exported

Latest version **0.2.2** (published 2019-12-22) · 0 weekly downloads

## Install

```sh
npm install firefox-profile-reader
pnpm add firefox-profile-reader
yarn add firefox-profile-reader
bun add firefox-profile-reader
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2019-12-22 |
| First published | 2019-05-15 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | linonetwo012 |

## Links

- npm: https://www.npmjs.com/package/firefox-profile-reader
- npm.io page: https://npm.io/package/firefox-profile-reader

## Recent versions

- 0.2.2 (latest) — 2019-12-22
- 0.2.1 — 2019-05-24
- 0.2.0 — 2019-05-15
- 0.1.0 — 2019-05-15

## README

# firefox-profile-reader

Two functions are exported

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

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

## getHistory

Example:

```js
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.

---
_Source: https://npm.io/package/firefox-profile-reader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
