
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
An unfancy CSV to JSON/markdown parsing lib with no streams or asynchrony
npm install dumb-csv
const dumbcsv = require('dumb-csv')
dumbcsv
.fromCSV({ data: 'hello,world', separator: ',', headerFields: ['a', 'b'] })
.toJSON()
// [{"a":"hello","b":"world"}]
Input options
object:
data
(string) -- a string representing the CSV datafile
(string) -- a path to the CSVheaderFields
(optional string[]) -- an array of strings containing the headers for the CSV, assuming they are not the 1st lineoverrideExistingHeader
(optional bool) -- if the 1st line IS a header, but your headerFields
should override itparseFloats
(default true) -- if we should try and convert rows that are numbers into JS Number's, or if false keep everything as stringsOutput object :
toJSON()
(function) -- calling this will return a javascript object that represents the CSVtoMarkdown()
(function) -- calling this will return a string that has a formatted markdown table inside that represents the CSV1.1.2
FAQs
Unfancy and dumb Node.js csv to json or markdown converter
The npm package dumb-csv receives a total of 26 weekly downloads. As such, dumb-csv popularity was classified as not popular.
We found that dumb-csv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.