# bookmark-file-parser

> Parse Firefox/Chrome/IE/Safari HTML bookmarks files

Latest version **1.0.6** (published 2020-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install bookmark-file-parser
pnpm add bookmark-file-parser
yarn add bookmark-file-parser
bun add bookmark-file-parser
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2020-10-19 |
| First published | 2019-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 93.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 24 |
| Author | hold-baby |
| Maintainers | hold-baby |
| Keywords | bookmark, bookmark-parser |

## Links

- npm: https://www.npmjs.com/package/bookmark-file-parser
- Repository: https://github.com/hold-baby/bookmark-file-parser
- Homepage: https://github.com/hold-baby/bookmark-file-parser#readme
- Issues: https://github.com/hold-baby/bookmark-file-parser/issues
- npm.io page: https://npm.io/package/bookmark-file-parser

## Dependencies (7)

- [jest](https://npm.io/package/jest.md) 26.5.3
- [cheerio](https://npm.io/package/cheerio.md) 1.0.0-rc.3
- [babel-jest](https://npm.io/package/babel-jest.md) 26.5.2
- [typescript](https://npm.io/package/typescript.md) 4.0.3
- [@babel/core](https://npm.io/package/@babel/core.md) 7.11.6
- [@types/cheerio](https://npm.io/package/@types/cheerio.md) 0.22.22
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) 7.11.5

## Recent versions

- 1.0.6 (latest) — 2020-10-19
- 0.12.6 — 2019-12-06
- 0.12.0 — 2019-12-06

## README

# bookmark-file-parser
Parse Firefox/Chrome/IE/Safari HTML bookmarks files

## install
```cmd
npm i bookmark-file-parser -S
```
## use
```javascript
import { parseByPath, parseByString } from "bookmark-file-parser"
import { readFileSync } from "fs"

const dirname = "./chrome.html"

const data1 = parseByPath(dirname)

const content = readFileSync(dirname, "utf-8")
const data2 = parseByString(content)
```
## output
```javascript
[{
    "name": "chrome",
    "type": "folder",
    "href": "",
    "icon": "",
    "children": [{
        "name": "google",
        "type": "site",
        "href": "https://www.google.com/",
        "icon": "",
        "children": []
    }]
}]  
```

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