
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
express-request-csv
Advanced tools
CSV's should be easy to send to users that request them. Here's how we do it
const expressRequestCSV = require('express-request-csv')
const app = express()
app.use(expressRequestCSV())
app.use('/some-data', (req, res, next) => {
res.json([{a: 1}, {a: 2}])
})
client side
const json = await fetch('/some-data')
const csv = await fetch('/some-data', {
headers: {
Accept: 'text/csv'
}
})
Parser - Don't like json2csv? Don't use it! Swap it out with your own parser.config - The configuration to pass to the new parser for the middleware instance. Uses empty object by default.header - Change the header that you react to and send in Content-Type response header. Uses text/csv by default.shouldUse - An optional function to check the request and determine whether the csv parser should be used. Defaults to checking the request header for text/csvquery - A key to check for field subsetting passed from the client in the query string. Defaults to fields.FAQs
send csv when on request headers
We found that express-request-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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.