![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@vanillaes/csv
Advanced tools
CSV is a universal JavaScript CSV parser designed specifically to be simple, fast, and spec compliant.
This package works isomorphically in browser and server-side JavaScript
Import directly from the local path or a CDN
<script type="module">
import { parse } from 'path/to/csv/index.js'
</script>
The minified version can be imported from
<script type="module">
import { parse } from 'path/to/csv/index.min.js'
</script>
Install the package
npm install @vanillaes/csv
Import using the module path
import { parse } from '@vanillaes/csv'
Takes a string of CSV data and converts it to a 2 dimensional array of [entries][values]
CSV.parse(csv, {options}, reviver(value, row, col)) : [entries][values]
false
)(value) => value
)1 Values for row
and col
are 1-based.
const csv = `
header1,header2,header3
aaa,bbb,ccc
zzz,yyy,xxx
`;
const parsed = parse(csv)
console.log(parsed);
> [
> [ "header1", "header2", "header3" ],
> [ "aaa", "bbb", "ccc" ],
> [ "zzz", "yyy", "xxx" ]
> ]
Takes a 2 dimensional array of [entries][values]
and converts them to CSV
CSV.stringify(array, {options}, replacer(value, row, col)) : string
true
)(value) => value
)1 Values for row
and col
are 1-based.
const data = [
[ "header1", "header2", "header3" ],
[ "aaa", "bbb", "ccc" ],
[ "zzz", "yyy", "xxx" ]
];
const stringified = stringify(data)
console.log(stringified);
> "header1,header2,header3"
> "aaa,bbb,ccc"
> "zzz,yyy,xxx"
Typings are generated from JSDoc using Typescript. They are 100% compatible with VSCode Intellisense and will work seamlessly with Typescript.
FAQs
A modern, fast, RFC 4180 compliant parser for JS
The npm package @vanillaes/csv receives a total of 0 weekly downloads. As such, @vanillaes/csv popularity was classified as not popular.
We found that @vanillaes/csv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.