netscape-bookmarks
Create a netscape format bookmarks file (works with Chrome)
Installation
npm install netscape-bookmarks
Usage
var netscape = ;var bookmarks ='Dave Eddy': 'http://www.daveeddy.com''Perfume Global': 'http://www.perfume-global.com';var html = );console;
results in this awful looking, netscape-compatible, html
<!--This is an automatically generated file.It will be read and overwritten.Do Not Edit! -->BookmarksBookmarksDave EddyPerfume Global
You can import this HTML into your favorite browser and it should work. Consider looking into the node urlfile module I've written for further bookmark processing.
Examples
Given
you get
<!--This is an automatically generated file.It will be read and overwritten.Do Not Edit! -->BookmarksBookmarksDave Eddy's BlogPerfume GlobalUnfiledSecond FolderNested Folders!YouTubeGitHubTekZoned
Notes
A website can either be a string containing the URL only, or an object with
the url
attribute present. If the contents
attribute is found, it is
assumed to be a folder containing more folders or websites.
License
MIT License