Gathering detailed insights and metrics for @types/body-parser-xml
Gathering detailed insights and metrics for @types/body-parser-xml
Gathering detailed insights and metrics for @types/body-parser-xml
Gathering detailed insights and metrics for @types/body-parser-xml
The repository for high quality TypeScript type definitions.
npm install @types/body-parser-xml
Typescript
Module System
89.8
Supply Chain
88.5
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,033 Stars
89,737 Commits
30,434 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 14, 2025
Latest Version
2.0.5
Package Id
@types/body-parser-xml@2.0.5
Unpacked Size
7.40 kB
Size
2.43 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
npm install --save @types/body-parser-xml
This package contains type definitions for body-parser-xml (https://github.com/fiznool/body-parser-xml).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser-xml.
1/// <reference types="node" /> 2 3// import bodyParser = require('body-parser'); 4import { BodyParser } from "body-parser"; 5import { NextHandleFunction } from "connect"; 6import { Request, Response } from "express-serve-static-core"; 7import { ParserOptions } from "xml2js"; 8 9/** 10 * This library adds an xml method to the body-parser object. 11 */ 12declare function bodyParserXml(bodyParser: BodyParser): void; 13 14declare namespace bodyParserXml { 15 interface Options { 16 /** 17 * Specify the default character set for the text content if the charset is not specified in the Content-Type header of the request. 18 * @default 'utf-8' 19 */ 20 defaultCharset?: BufferEncoding | undefined; 21 /** 22 * When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. 23 * @default true 24 */ 25 inflate?: boolean | undefined; 26 /** 27 * Controls the maximum request body size. If this is a number, then the value specifies the number of bytes; if it is a string, the value is passed to the bytes library for parsing. 28 * @default '100kb' 29 */ 30 limit?: string | number | undefined; 31 /** 32 * The type option is used to determine what media type the middleware will parse. 33 * @default ['_/xml', '+xml'] 34 */ 35 type?: string | string[] | ((req: Request) => boolean) | undefined; 36 /** 37 * The verify option, if supplied, is called as verify(req, res, buf, encoding), 38 * where buf is a Buffer of the raw request body and encoding is the encoding of the request. 39 * The parsing can be aborted by throwing an error. 40 */ 41 verify?: ((req: Request, res: Response, buf: Buffer, encoding: BufferEncoding) => void) | undefined; 42 /** 43 * This option controls the behaviour of the XML parser 44 */ 45 xmlParseOptions?: ParserOptions | undefined; 46 } 47} 48 49export = bodyParserXml; 50 51declare module "body-parser" { 52 interface BodyParser { 53 xml(options?: bodyParserXml.Options): NextHandleFunction; 54 } 55} 56
These definitions were written by tbounsiar, and Piotr Błażejewicz.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More