SuperConvert 1.0.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SuperConvert --version 1.0.5.1
                    
NuGet\Install-Package SuperConvert -Version 1.0.5.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="SuperConvert" Version="1.0.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SuperConvert" Version="1.0.5.1" />
                    
Directory.Packages.props
<PackageReference Include="SuperConvert" />
                    
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 SuperConvert --version 1.0.5.1
                    
#r "nuget: SuperConvert, 1.0.5.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.
#:package SuperConvert@1.0.5.1
                    
#: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=SuperConvert&version=1.0.5.1
                    
Install as a Cake Addin
#tool nuget:?package=SuperConvert&version=1.0.5.1
                    
Install as a Cake Tool

SuperConvert

Make your data conversion simple

BuildStatus codecov License

SuperConvert is a lightweight .NET library for converting between common data formats with a simple API.

Packages

  • SuperConvert (core conversions): NuGet
  • SuperConvert.Files (file conversion helpers): NuGet
  • SuperConvert.Abstraction (DI-friendly service abstraction): NuGet

What's new in 1.0.5 (SuperConvert)

  • Fixed CSV escaping/unescaping issue for quote characters (").
  • Export now escapes quotes as doubled quotes ("") in CSV fields.
  • Import now correctly parses quoted values and restores escaped quotes.
  • Added regression tests for CSV quote handling and quoted comma fields.

Features

  • JSON to DataTable
  • DataTable to JSON
  • JSON to CSV / CSV to JSON
  • DataTable to CSV / CSV to DataTable
  • JSON to XLS / DataTable to XLS
  • Gregorian and Hijri date conversion
  • String and file Base64 conversion helpers

Target frameworks

Current package targets:

  • netcoreapp3.1
  • net5.0
  • net6.0
  • net7.0
  • net8.0
  • net9.0
  • net10.0

Installation

Core package

Install-Package SuperConvert -Version 1.0.5.1

Files package

Install-Package SuperConvert.Files -Version 1.0.3.9

Abstraction package

Install-Package SuperConvert.Abstraction -Version 1.0.0.3

Usage

Namespaces

using SuperConvert.Extensions;
using System.Data;

JSON to DataTable

string customers = "[{\"CompanyID\":\"k123\",\"Role\":\"Admin\",\"Country\":\"UK\"}]";
DataTable dt = customers.ToDataTable("TableName");

DataTable to JSON

string json = dt.ToJson();

DataTable to CSV

string path = string.Empty;
string fileName = "DtToCsv";
string csvPath = dt.ToCsv(path, fileName);

CSV to DataTable

DataTable csvDt = ExcelConverter.CsvToDataTable(csvPath);

CSV quote behavior (example)

Input text:

The "elephant" in the room.

CSV field output:

"The ""elephant"" in the room."

Import returns:

The "elephant" in the room.

Latest versions

Package Version Link
SuperConvert 1.0.5.1 https://www.nuget.org/packages/SuperConvert/1.0.5.1
SuperConvert.Files 1.0.3.9 https://www.nuget.org/packages/SuperConvert.Files
SuperConvert.Abstraction 1.0.0.3 https://www.nuget.org/packages/SuperConvert.Abstraction
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  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 is compatible.  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 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • net10.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on SuperConvert:

Package Downloads
SuperConvert.Files

SuperConvert is an open-source lightweight package to convert your data in c# Convert between data containers, Json/Datatable/Excelsheets and other data tables Create some json strings / Data tables Convert between them Convert DateTime Convert Json ⇔ Csv Convert DataTable ⇔ Csv ✨Magic ✨

SuperConvert.Abstraction

SuperConvert.Abstraction is an open-source lightweight package to convert your data in c# Convert between data containers, Json/Datatable/Excelsheets and other data tables Create some json strings / Data tables Convert between them Convert DateTime Convert Json ⇔ Csv Convert DataTable ⇔ Csv ✨Magic ✨

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SuperConvert:

Repository Stars
VedAstro/VedAstro
A non-profit, open source project to make Vedic Astrology easily available to all.
Version Downloads Last Updated
1.0.5.2 193 4/21/2026
1.0.5.1 83 4/20/2026
1.0.5 160 4/20/2026
1.0.4.9 90,236 12/11/2023
1.0.4.8 6,273 8/22/2023
1.0.4.7 337 8/15/2023
1.0.4.6 375 8/13/2023
1.0.4.5 4,870 7/11/2023
1.0.4.4 18,810 4/4/2023
1.0.4.3 840 3/23/2023
1.0.4.2 874 3/14/2023
1.0.4.1 443 3/14/2023 1.0.4.1 is deprecated because it has critical bugs.
1.0.4 465 3/14/2023 1.0.4 is deprecated because it has critical bugs.
1.0.3.7 3,068 1/9/2023
1.0.3.6 1,805 11/14/2022
1.0.3.5 533 11/9/2022
1.0.3.4 1,104 10/24/2022
1.0.3.3 751 10/5/2022
1.0.3.2 6,278 9/26/2022
1.0.3.1 692 9/26/2022 1.0.3.1 is deprecated because it has critical bugs.
Loading failed