Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
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:
npm install
To compile typescript code into js one-time
npm run build
or run this, to watch all changes
npm 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
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 npm run generate-docs
. TypeDoc source code documentation is located in docs/typedoc
.
Please read CONTRIBUTING.md
.
Contact benak@operatorict.cz
[1.2.0] - 2023-05-25
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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.