Gathering detailed insights and metrics for csv-exportor
Gathering detailed insights and metrics for csv-exportor
Gathering detailed insights and metrics for csv-exportor
Gathering detailed insights and metrics for csv-exportor
convert array to csv file, and allow browser to automatically download the file
npm install csv-exportor
Typescript
Module System
Node Version
NPM Version
HTML (61.23%)
JavaScript (38.77%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
14 Stars
10 Commits
8 Forks
1 Watchers
6 Branches
2 Contributors
Updated on Jan 16, 2025
Latest Version
1.0.2
Package Id
csv-exportor@1.0.2
Size
23.11 kB
NPM Version
4.0.5
Node Version
7.4.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
A Javascript library for browsers to generate and download csv file from array.
The csv parser is based on module comma-separated-values
refer to comma-separated-values
to see all the allowed array patten
and options
.
using window.URL.createObjectURL
to create file stream, so please pay attention to the browser compatibility.
1/* 2using vue2 to demo its usage 3by click the button, 4your brower would start a download 5of file 'test.csv' immediately. 6*/ 7<template> 8 ... 9 <button @click="exportCsv">EXPORT</button> 10 ... 11</template> 12 13 14import CsvExportor from 'csv-exportor' 15 16export default { 17 data() { 18 return { 19 tableData: [["a","b","c"],["d","e","f"]], 20 header: ["foo","bar","baz"], 21 } 22 }, 23 methods: { 24 exportCsv() { 25 CsvExportor.downloadCsv( 26 tableData, 27 { header }, 28 'test.csv'); 29 } 30 }
Use Yarn or npm:
1$ yarn add csv-exportor
1$ npm i csv-exportor --save
It's an UMD module, so you can:
1// ECMAScript 2015+ (via Babel) 2import CsvExportor from 'csv-exportor'
1// CommonJS 2const CsvExportor = require('csv-exportor')
1<!-- browser globals --> 2<script src="YOUR_PATH_TO/node-modules/csv-exportor/dist/index.min.js"></script>
1import CsvExportor from 'csv-exportor'
2
3/*
4 generate csv file from data,
5 and automaticly download the file for browser
6 */
7CsvExportor.downloadCsv(data, options, fileName);
8
9// generate data url of the generated csv file
10CsvExportor.genUrl(data, options);
11
LICENSE MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/8 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
43 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More