BookmarksManager 2.0.0

.NET Standard 1.6
dotnet add package BookmarksManager --version 2.0.0
NuGet\Install-Package BookmarksManager -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BookmarksManager" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BookmarksManager --version 2.0.0
#r "nuget: BookmarksManager, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BookmarksManager as a Cake Addin
#addin nuget:?package=BookmarksManager&version=2.0.0

// Install BookmarksManager as a Cake Tool
#tool nuget:?package=BookmarksManager&version=2.0.0

BookmarksManager (simple .NET Standard lib for importing/exporting browser bookmarks)

With this library you can:

License: MIT license

NuGet packages: https://www.nuget.org/packages?q=bookmarksmanager

Usage examples:

//Read bookmarks from string
var reader = new NetscapeBookmarksReader();
var bookmarks = reader.Read(bookmarksString);
foreach (var b in bookmarks.AllLinks)
{
  Console.WriteLine("Url: {0}; Title: {1}", b.Url, b.Title);
}

//Read bookmarks from file
using (var file = File.OpenRead("path_to_file"))
{
  var reader = new NetscapeBookmarksReader();
  //supports encoding detection when reading from stream
  var bookmarks = reader.Read(file);
  foreach (var b in bookmarks.AllLinks.Where(l=>l.LastVisit < DateTime.Today))
  {
    Console.WriteLine("Type {0}, Title: {1}", b.GetType().Name, b.Title);
  }
}


//Write bookmarks
var bookmarks = new BookmarkFolder()
{
    new BookmarkLink("http://example.com", "Example")
};
var writter = new NetscapeBookmarksWritter(bookmarks);

Console.WriteLine(writter.ToString());

//supports writting to stream with custom encoding
writter.OutputEncoding = Encoding.GetEncoding(1257);
using (var file = File.OpenWrite("path_to_file"))
{
    writter.Write(file);
}
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp1.0 netcoreapp1.1 netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard1.6 netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen30 tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on BookmarksManager:

Package Downloads
BookmarksManager.Chrome

Library for handling Chrome bookmarks. Supports reading from Chrome bookmarks file and JSON from Chrome API

BookmarksManager.Firefox

Library for handling Firefox bookmarks. Supports reading from Firefox bookmarks sqlite database

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0 3,653 12/20/2018
1.1.1 1,950 7/22/2014
1.1.0 1,001 7/22/2014
1.0.0 1,573 6/18/2014

Ported to netstandard1.6;
Minor bugfixes;
Braking change: NetscapeBookmarksWritter renamed to NetscapeBookmarksWriter;