All Projects → scttcper → ngx-csv

scttcper / ngx-csv

Licence: MIT license
Angular directive to generate a CSV download in the browser

Programming Languages

typescript
32286 projects
HTML
75241 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ngx-csv

Textrude
Code generation from YAML/JSON/CSV models via SCRIBAN templates
Stars: ✭ 79 (+132.35%)
Mutual labels:  csv
municipios-br
Dados em formato aberto sobre municípios e unidades federativas do Brasil.
Stars: ✭ 58 (+70.59%)
Mutual labels:  csv
cubetl
CubETL - Framework and tool for data ETL (Extract, Transform and Load) in Python (PERSONAL PROJECT / SELDOM MAINTAINED)
Stars: ✭ 21 (-38.24%)
Mutual labels:  csv
csv2xlsx
Fast and simple opensource command line tool to convert CSV do XLSX
Stars: ✭ 38 (+11.76%)
Mutual labels:  csv
CsvTextFieldParser
A simple CSV parser based on Microsoft.VisualBasic.FileIO.TextFieldParser.
Stars: ✭ 40 (+17.65%)
Mutual labels:  csv
FileConvert
Converts between file formats such as CSV and Parquet
Stars: ✭ 14 (-58.82%)
Mutual labels:  csv
COVID-19-Greece
A python-generated website for visualizing the novel coronavirus (COVID-19) data for Greece.
Stars: ✭ 21 (-38.24%)
Mutual labels:  csv
Workout
A simple iOS app that accesses Health data to export workout data to CSV for any use.
Stars: ✭ 39 (+14.71%)
Mutual labels:  csv
import-cli-simple
This the meta package for Pacemaker Community, a Symfony based CLI application that provides import functionality for products, categories, attributes, and attribute-sets. The default format is CSV, adapters for XML are also available. The application can be declaratively extended by additional operations, which can be used to reassemble and exe…
Stars: ✭ 69 (+102.94%)
Mutual labels:  csv
DaFlow
Apache-Spark based Data Flow(ETL) Framework which supports multiple read, write destinations of different types and also support multiple categories of transformation rules.
Stars: ✭ 24 (-29.41%)
Mutual labels:  csv
phpunit-extensions
📦 Some cool extensions for PHPUnit
Stars: ✭ 28 (-17.65%)
Mutual labels:  csv
csvtogs
Take a CSV file and create a Google Spreadsheet with the contents
Stars: ✭ 15 (-55.88%)
Mutual labels:  csv
flowtorch
flowTorch - a Python library for analysis and reduced-order modeling of fluid flows
Stars: ✭ 47 (+38.24%)
Mutual labels:  csv
ottosocial
👍 ottosocial is a CLI to schedule tweets via CSV
Stars: ✭ 23 (-32.35%)
Mutual labels:  csv
node-emails-from-csv
A simple NodeJS aplication that helps sending emails for events. Uses CSV files for target users.
Stars: ✭ 18 (-47.06%)
Mutual labels:  csv
grafana-csv-plugin
CSV datasource for Grafana 6.x.x / 7.x.x
Stars: ✭ 33 (-2.94%)
Mutual labels:  csv
DataProfiler
What's in your data? Extract schema, statistics and entities from datasets
Stars: ✭ 843 (+2379.41%)
Mutual labels:  csv
libcsv
libcsv is a small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data. | libcsv是用纯ANSI C89编写的小型、简单、快速的CSV库,支持读写CSV数据.
Stars: ✭ 23 (-32.35%)
Mutual labels:  csv
badsv
The official BaDSV specification and CLI. Ascend from your puny DSV files!
Stars: ✭ 50 (+47.06%)
Mutual labels:  csv
OBIS
A JavaScript framework for downloading bank statements in OFX, QIF, CSV, and JSON. Currently supports HSBC UK Personal Banking.
Stars: ✭ 37 (+8.82%)
Mutual labels:  csv

@ctrl/ngx-csv

npm CircleCI coverage

Easily generate a CSV download in the browser with Angular

Demo: https://ngx-csv.vercel.app

Install

npm install @ctrl/ngx-csv

Dependencies

Latest version available for each version of Angular

ngx-csv Angular
2.1.1 8.x
3.0.1 9.x
4.0.0 10.x
5.0.0 12.x, 13.x
current >= 14.x

Import

import { CsvModule } from '@ctrl/ngx-csv';

Use

Add the csvLink directive to your <a> tag

<a csvLink [data]="data">Download</a>

Input

  • data: The body of the csv
  • headers: Set the first line of the csv
  • delimiter: Set the seperator between values. Default ','
  • filename: Set the filename of the csv. Default data.csv
  • uFEFF: Adds a Byte order mark to setup the csv as UTF-8. Default true
  • target: Element target. Default `_blank

Accepted Data Formats

Array of objects

keys are used as the column headers

const data = [
  { firstname: 'Ahmed', lastname: 'Tomi', email: '[email protected]' },
  { firstname: 'Raed', lastname: 'Labes', email: '[email protected]' },
  { firstname: 'Yezzi', lastname: 'Min l3b', email: '[email protected]' },
];
Array of strings

first line used as headers if not supplied

const data = [
  ['firstname', 'lastname', 'email'],
  ['Ahmed', 'Tomi', '[email protected]'],
  ['Raed', 'Labes', '[email protected]'],
  ['Yezzi', 'Min l3b', '[email protected]'],
];
String

An already formatted csv from an outside source

const data = `firstname,lastname
Ahmed,Tomi
Raed,Labes
Yezzi,Min l3b
`;
Array of objects with custom headers

provided headers

const headers = [
  { label: 'First Name', key: 'firstname' },
  { label: 'Last Name', key: 'lastname' },
  { label: 'Email', key: 'email' },
];

const data = [
  { firstname: 'Ahmed', lastname: 'Tomi', email: '[email protected]' },
  { firstname: 'Raed', lastname: 'Labes', email: '[email protected]' },
  { firstname: 'Yezzi', lastname: 'Min l3b', email: '[email protected]' },
];

See Also

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].