NetworkInspector.Exporters 0.4.0

dotnet add package NetworkInspector.Exporters --version 0.4.0
                    
NuGet\Install-Package NetworkInspector.Exporters -Version 0.4.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="NetworkInspector.Exporters" Version="0.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NetworkInspector.Exporters" Version="0.4.0" />
                    
Directory.Packages.props
<PackageReference Include="NetworkInspector.Exporters" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NetworkInspector.Exporters --version 0.4.0
                    
#r "nuget: NetworkInspector.Exporters, 0.4.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.
#:package NetworkInspector.Exporters@0.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NetworkInspector.Exporters&version=0.4.0
                    
Install as a Cake Addin
#tool nuget:?package=NetworkInspector.Exporters&version=0.4.0
                    
Install as a Cake Tool

NetworkInspector.Exporters

NuGet

User-focused export package for writing either raw frames or parsed packets.

What This Is

NetworkInspector.Exporters contains two exporter families:

  • Frame exporters (IFrameListener): preserve capture frame structure.
  • Packet exporters (IPacketListener): serialize parsed packet data for analysis workflows.

Why It Stands Out

  • One package covers conversion-oriented and analysis-oriented outputs.
  • Consistent builder pattern across formats.
  • Practical output targets (file, stream, and stdout depending on exporter).

Install

dotnet add package NetworkInspector.Exporters

Typical packet-export stacks also include:

dotnet add package NetworkInspector.Core
dotnet add package NetworkInspector.Protocols
dotnet add package NetworkInspector.Sources

Choose Your Export Path

Goal Input Type Recommended Path Typical Formats
Repackage or transform captures Frames Frame exporter PCAPNG, BLF, ASC
Produce analysis-ready records Parsed packets Packet exporter JSON, PBF, CSV, Text

Quick Start

Frame Export Quick Start (PCAPNG)

using NetworkInspector.Exporters.Pcapng;

using PcapngExporter exporter = PcapngExporter.CreateBuilder()
    .ToFile("capture.pcapng")
    .Build();

foreach (Frame frame in frames)
{
    if (!exporter.OnFrame(frame))
    {
        break;
    }
}

exporter.OnFinish();

Packet Export Quick Start (JSON)

using NetworkInspector.Exporters.Json;

using JsonExporter exporter = JsonExporter.CreateBuilder()
    .ToFile("packets.json")
    .Build();

foreach (Packet packet in packets)
{
    if (!exporter.OnPacket(packet))
    {
        break;
    }
}

exporter.OnFinish();

Export Format Map

Exporter Output Use When Guide
PcapngExporter .pcapng Broad tool compatibility and standard capture exchange Pcapng/README.md
BlfExporter .blf Automotive and CAN-focused pipelines Blf/README.md
AscExporter .asc Human-readable CAN trace files Asc/README.md
JsonExporter .json General analytics and downstream processing Json/README.md
PbfExporter .pbf Compact binary output at scale Pbf/README.md
CsvExporter .csv Spreadsheet and tabular workflows Csv/README.md
TextExporter .txt Readable protocol-tree output Text/README.md

Common Tasks

Export To Stdout

Use builders with stdout targets for pipeline-first workflows.

Stop Early On Limits

Pair exporters with upstream count/time/cancellation controls to avoid unbounded runs.

Finalize Correctly

Call OnFinish() before disposal to flush final metadata and trailing structures.

Limits And Thread-Safety Notes

  • Treat exporter instances as single-threaded unless a format README states otherwise.
  • Exporters do not validate upstream trust assumptions; validate and bound input at source/parse boundaries.
  • Feature details (compression, schema variants, dialect nuances) are format-specific and documented in each sub-README.

Safe Usage (STRIDE)

  • Spoofing: Preserve source provenance metadata outside the exporter output when chain-of-custody matters.
  • Tampering: Surface and log malformed input handling decisions in calling code.
  • Repudiation: Persist exporter configuration with output artifacts for reproducibility.
  • Information disclosure: Treat JSON/CSV/Text outputs as potentially sensitive and protect destinations accordingly.
  • Denial of service: Enforce cancellation and bounded processing in high-volume runs.
  • Elevation of privilege: Run exporter processes with least-privilege write access.

License

MIT License

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.4.0 105 6/2/2026
0.3.0 114 5/21/2026
0.2.0 101 5/19/2026