Mafe.TinyCsv 1.0.0

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Mafe.TinyCsv --version 1.0.0
NuGet\Install-Package Mafe.TinyCsv -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="Mafe.TinyCsv" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mafe.TinyCsv --version 1.0.0
#r "nuget: Mafe.TinyCsv, 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 Mafe.TinyCsv as a Cake Addin
#addin nuget:?package=Mafe.TinyCsv&version=1.0.0

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

TinyCsv

TinyCsv is a .NET library to read and write CSV data in an easy way.

To use it in your project, add the Mafe.TinyCvs NuGet package to your project.

Nuget (with prereleases)

Define the model if you want to use, like this:

public class Model
{
    public int Id { get; set; }
    public string Name { get; set; }
    public decimal Price { get; set; }
    public DateTime CreatedOn { get; set; }
}

Now, is necessary to define the TinyCSV options, like this:

var csv = new TinyCsv<Model>(options =>
{
    options.HasHeaderRecord = true;
    options.Delimiter = ";";
    options.Columns.AddColumn(m => m.Id);
    options.Columns.AddColumn(m => m.Name);
    options.Columns.AddColumn(m => m.Price);
    options.Columns.AddColumn(m => m.CreatedOn, "dd/MM/yyyy");
});

The options defines that the file has the header in first row and the delimier char is ";", furthermore there are defined three columns.

A column is defined with the model's property only. The library get or set the value in automatically.

To read a csv file is only necessary invoke the load method, like this:

var models = csv.Load("file.csv");

The load method returns a collection of Model type items and takes as argument the file's path.

To write a csv file is only necessary invoke the Save method, like this:

csv.Save("file_export.csv", models);

The save method takes the file's path and a collection of Model type. The method saves the file.

The library is very very simple to use.

The library is in preview version and in the future days it will be upgrade to expand its functionality.

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 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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net452 is compatible.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Mafe.TinyCsv:

Package Downloads
Mafe.TinyCsv.Extensions

TinyCsv Extensions is a .NET library utilities to read and write CSV data in an easy way.

DarkStar.Api

Package Description

Mafe.TinyCsv.AspNetCore

TinyCsv AspNetCore is a .NET library utilities to read and write CSV data in an easy way on AspNetCore project.

Void.Api

Api library for void engine mmo

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.0 116 4/6/2024
2.2.0-rc1 65 3/1/2024
2.1.0 265 9/5/2023
2.0.0 209 8/22/2023
1.6.1 1,345 11/22/2022
1.6.0 472 10/19/2022
1.5.2 21,038 6/23/2022
1.5.1 670 6/22/2022
1.5.0 779 6/22/2022
1.4.3 622 6/21/2022
1.4.2 411 6/20/2022
1.4.1 433 6/20/2022
1.3.0 3,773 5/18/2022
1.2.1 1,833 5/16/2022
1.1.0 3,120 5/5/2022
1.0.2 454 5/1/2022