NETBinaryCookie 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NETBinaryCookie --version 1.0.0                
NuGet\Install-Package NETBinaryCookie -Version 1.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="NETBinaryCookie" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NETBinaryCookie --version 1.0.0                
#r "nuget: NETBinaryCookie, 1.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 NETBinaryCookie as a Cake Addin
#addin nuget:?package=NETBinaryCookie&version=1.0.0

// Install NETBinaryCookie as a Cake Tool
#tool nuget:?package=NETBinaryCookie&version=1.0.0                

NETBinaryCookie

A simple, independent Apple binarycookies format read-write package for .NET projects.

Supports reading and parsing lists of cookies from an input binarycookies file or stream otherwise. Does not yet support writing modified lists of cookies back to disk.

Dependencies

The dependency graph for this package is kept intentionally minimal, and concerted effort has been made to keep it dependency-free.

Feedback

Please submit any bug reports, feature requests, or other concerns on the project's GitHub page.

To send appreciation, feel free to send me a direct email: github@xmit.xyz

Example Usage

Below demonstrates a very rudimentary usage of the read functions within this package.

At some later time, the to-be-implemented write functions will make modifying saved cookie stores much more viable.

using NETBinaryCookie;

// ...

var cookieJar = NETBinaryCookie.ReadFromFile(@"/Users/myuser/Documents/Cookies.binarycookies");

var mySpecificCookies = cookieJar.GetCookies(
    cookie => cookie.Domain.ToLower().Contains("github."));
// ...

var cookiesAfterChristmas = cookieJar.GetCookies(
    cookie => cookie.Creation > new DateTime(2023, 12, 25));

foreach (var cookie in cookiesAfterChristmas)
{
    Console.WriteLine(cookie);
}
// ...
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 275 2/26/2023
1.0.0 247 2/20/2023

Supports reading and parsing lists of cookies from an input binarycookie file or stream otherwise. Does not yet support writing modified lists of cookies back to disk.