BookmarksManager 1.1.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BookmarksManager --version 1.1.1
NuGet\Install-Package BookmarksManager -Version 1.1.1
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="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BookmarksManager --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BookmarksManager, 1.1.1"
#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=1.1.1
// Install BookmarksManager as a Cake Tool
#tool nuget:?package=BookmarksManager&version=1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BookmarksManager (simple .NET/C# lib for importing/exporting bookmarks)
With this library you can:
- Write/export and read/import Netscape bookmark file format (exported from Firefox, IE, etc.)
- Read/import Firefox internal bookmarks sqlite database (places.sql)
- Read/import Chrome bookmarks from browser api (https://developer.chrome.com/extensions/bookmarks) and Chrome bookmarks file (JSON format)
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 Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
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.