All Projects → calibr → node-bookmarks-parser

calibr / node-bookmarks-parser

Licence: other
Parses Firefox/Chrome HTML bookmarks files

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-bookmarks-parser

html2biblatex
A tiny bookmarklet for exporting web pages to BibLaTeX (all browsers / no installation).
Stars: ✭ 73 (+65.91%)
Mutual labels:  bookmark
pocketizer
Unofficial Pocket new tab extension for Chrome, Firefox, and Edge
Stars: ✭ 43 (-2.27%)
Mutual labels:  pocket
bookmarks-for-spotify
"Bookmarks for Spotify" allows you to bookmark recently played song or audiobook tracks from Spotify.
Stars: ✭ 22 (-50%)
Mutual labels:  bookmark
pocket-bot
Save articles from Facebook Messenger to Pocket through a chatbot
Stars: ✭ 18 (-59.09%)
Mutual labels:  pocket
tim
manage issues with order
Stars: ✭ 51 (+15.91%)
Mutual labels:  bookmark
awesome-bookmarking
🔖 Everything bookmarking related
Stars: ✭ 56 (+27.27%)
Mutual labels:  bookmark
bookmarkdupes
A WebExtension which can display/remove duplicate bookmarks or empty folders
Stars: ✭ 80 (+81.82%)
Mutual labels:  bookmark
bookmark-everything
This tool enables you to add bookmarks to your project files so you can reach them easily.
Stars: ✭ 37 (-15.91%)
Mutual labels:  bookmark
poku
Sync pocket bookmarks to buku
Stars: ✭ 45 (+2.27%)
Mutual labels:  pocket
browse-manager
Chrome扩展,网址/域名拉黑,访问次数统计、提示,自动收藏。等
Stars: ✭ 81 (+84.09%)
Mutual labels:  bookmark
Segnalibro
Save and comment your favorite links from the web. It's just a bookmarking application.
Stars: ✭ 14 (-68.18%)
Mutual labels:  bookmark
222
222. Dark mode. Everywhere. 222 bytes of js to make any website dark
Stars: ✭ 58 (+31.82%)
Mutual labels:  bookmark
YouP3
Android app for downloading media from YouTube with 4K Support (Beta)
Stars: ✭ 51 (+15.91%)
Mutual labels:  bookmark
fsc
A set of themeable WPF File System Controls similar to some parts of Windows (7-10) Explorer
Stars: ✭ 66 (+50%)
Mutual labels:  bookmark
Cyca
Web-based bookmarks and feeds manager
Stars: ✭ 15 (-65.91%)
Mutual labels:  bookmark
pocket-js
The Official Javascript Client of the Pocket Network
Stars: ✭ 26 (-40.91%)
Mutual labels:  pocket
pockexport
Export/access your Pocket data, including highlights!
Stars: ✭ 124 (+181.82%)
Mutual labels:  pocket
mdash
⭐️ Lightweight new tab page for Chrome/Firefox, synced with your bookmarks
Stars: ✭ 19 (-56.82%)
Mutual labels:  bookmark
jumpfs
Jumpfs is a cross-shell bookmarking system for files. folders, urls and shell-comands. It works in PowerShell, Bash, and Cmd.
Stars: ✭ 30 (-31.82%)
Mutual labels:  bookmark
pinboard-safariextension
📌 Pinboard Safari extension for bookmarking the current page.
Stars: ✭ 16 (-63.64%)
Mutual labels:  bookmark

Build Status

Parse bookmarks files

This library can parse formats listed below:

Installation

npm install bookmarks-parser

Example:

var parse = require("bookmarks-parser");
parse('<title>Pocket Export</title><h1>Unread</h1>'+
      '<ul><li><a href="http://example.com">Example!</a></li></ul>', function(err, res) {
  console.log(err);
  console.log(res.parser);
  console.log(res.bookmarks);
});

parse function receives two parameters - text of a exported bookmarks file and callback.

Second parameter returned in the callback is an object with fields:

  • parser - netscape or pocket
  • bookmarks - an array of parsed bookmarks

Each bookmark is an object with fields:

  • type - folder or bookmark
  • title - title of a bookmark or a folder
  • url - URL only for bookmarks
  • children - array of children bookmarks, only for folders
  • ns_root - if the folder is a root this field will contain one of the values: menu, toolbar, unsorted, otherwise null. Applicable only for netscape parser.

If you have found out any bugs or have any questions please feel free to submit it into the issues.

See more examples in the tests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].