Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
body-parser-csv
Advanced tools
This package is inspired by body-parser-xml and is using fast-csv for parsing.
Developed by http://operatorict.cz
Install Node
Install all npm modules using command:
yarn
To compile typescript code into js one-time
yarn run build
or run this, to watch all changes
yarn run build-watch
from the application's root directory.
In your project's package.json
set dependency to body-parser-csv
npm install body-parser-csv --save
or
yarn add body-parser-csv --save
Then import module, e.g.
const bodyParser = require("body-parser");
require("body-parser-csv")(bodyParser);
You can then use body-parser-csv the same way as you would use the body-parser-xml, with csv parsing options inside of the csvParseOptions
parameter.
this.express.use(
bodyParser.csv({
csvParseOptions: {
fastcsvParams: {
headers: true,
trim: true,
},
subscribe: ((json: any) => {
// some line transformation
return json;
}),
},
limit: "15MB",
})
);
For generating documentation run yarn run generate-docs
. TypeDoc source code documentation is located in docs/typedoc
.
Please read CONTRIBUTING.md
.
Contact benak@operatorict.cz or vycpalek@operatorict.cz
FAQs
CSV parser middleware for express.js
The npm package body-parser-csv receives a total of 26 weekly downloads. As such, body-parser-csv popularity was classified as not popular.
We found that body-parser-csv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.