Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@body/urlencoded
Advanced tools
Readme
Parse an URL-encoded body of an incoming HTTP request.
npm install --save @body/urlencoded
const getUrlencodedBody = require('@body/urlencoded')
// ...
app.post('/v1/users', async (req, res, next) => {
try {
const body = await getUrlencodedBody(req)
// ...
} catch (err) {
return next(err)
}
})
// ...
getUrlencodedBody(req: Request, options: Options): Promise<any>
Parse the body of the incoming request req
. Returns a promise of the parsed body.
inflate
(boolean)When set to true
, then bodies with a deflate
or gzip
content-encoding will be inflated before being parsed.
Defaults to false
.
FAQs
Parse an URL-encoded body of an incoming HTTP request.
The npm package @body/urlencoded receives a total of 131 weekly downloads. As such, @body/urlencoded popularity was classified as not popular.
We found that @body/urlencoded 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.