Skip to content

Latest commit

 

History

History
65 lines (56 loc) · 3.34 KB

français.md

File metadata and controls

65 lines (56 loc) · 3.34 KB

ACsv Library


ACsv est une "csv parsing livraria" facile, multi-plateforme et puissante.

Les caractéristiques:

  • multi-plateforme - fournir haxe, js, ts, php, java, python, c# , golang version
  • standard - prend en charge csv standard format (RFC 4180)
  • facile à utiliser - fournir exemple, démonstration et documentation
  • vitesse rapide - code optimisé pour des performances élevées, il peut fonctionner facilement dans un appareil plus ancien
  • puissante - prend en charge le "enhanced" csv format, voir les détails sur page en anglais

exemple

// 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"] }
// ]

démonstration

documentation

Online docs - via dox

autres

⭐ Si vous aimez ce projet, veuillez ajouter une étoile
english version