New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-parse-bookmarks

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-parse-bookmarks

Parse bookmarks files

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

node-parse-bookmarks

This library can parse following formats:

  • Netscape Bookmarks (Google Chrome)

Installation

npm install node-parse-bookmarks

Example:

import parse from "node-parse-bookmarks";

try {
  const html = ...;
  const bookmarks = parse(html);
} catch (e) {
  console.error(e);
}

Documentation

Methods

parse(text: string, options?: Options)
  • text string
  • options object - an optional parameter with following fields:
    • parser string - netscape (default)

Returns Bookmark[]

Objects

Bookmark
  • type string - folder or bookmark
  • title string - title of a bookmark or a folder
  • url string - URL only for bookmarks
  • children Bookmark[] - array of children bookmarks, only for folders
  • addDate string
  • lastModified string
  • icon string - favicon in a base64 encoded string
  • nsRoot string - if the folder is a root this field will contain one of the values: menu, toolbar, unsorted, otherwise null. Applicable only for netscape parser.

FAQs

Package last updated on 30 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc