Skip to content

Latest commit

 

History

History
65 lines (56 loc) · 3.34 KB

File metadata and controls

65 lines (56 loc) · 3.34 KB

ACsv Library


ACsv es una "csv parsing librería" fácil, multi-plataforma y poderosa.

Las características:

  • multi-plataforma - proporcionar haxe, js, ts, php, java, python, c# , golang versión
  • estándar - compatible con csv estándar formato (RFC 4180)
  • fácil de usar - proporcionar el ejemplo, la demostración y la documentación
  • rápida velocidad - código optimizado para alto rendimiento, puede funcionar fácilmente en dispositivos más antiguos
  • poderosa - compatible con "enhanced" csv formato, ver detalles en pagina en ingles

ejemplo

// enhanced_csv_content
//----------------------------------------------------------------
//| id:int | name:string | age:int | weight:number | tags:json   |
//|--------------------------------------------------------------|
//|    1   |   John      |   20    | 60.1          | ["cool"]    |
//|    2   |   Mary      |   20    | 60.2          | ["thin"]    |
//|    3   |   Tom       |   18    | 60.3          | ["young"]   |
//----------------------------------------------------------------

var table = acsv.Table.Parse(enhanced_csv_content);
table.selectWhenE(1, 3).toFirstObj();
// {id: 3, name: "Tom",  age: 18, weight: 60.3, tags: ["young"] }

table.selectWhenE(0, 20, 2).toObjs();
// [ 
//   {id: 1, name: "John", age: 20, weight: 60.1, tags: ["cool"] }, 
//   {id: 2, name: "Mary", age: 20, weight: 60.2, tags: ["thin"] }
// ]

// Method Chaining Usage
table.selectWhenE(0, 20, 2).selectWhenL(0, false, 60.2).toObjs();
// [ 
//   {id: 1, name: "John",  age: 20, weight: 60.1, tags: ["cool"] }
// ]

demostración

documentación

Online docs - via dox

otros

⭐ Si te gusta este proyecto, por favor agrega una estrella
english version