MCPcopy
hub / github.com/expressjs/body-parser / text

Function text

lib/types/text.js:30–36  ·  view source on GitHub ↗

* Create a middleware to parse text bodies. * * @param {Object} [options] * @returns {Function} * @public

(options)

Source from the content-addressed store, hash-verified

28 * @public
29 */
30function text (options) {
31 const normalizedOptions = normalizeOptions(options, 'text/plain')
32
33 return function textParser (req, res, next) {
34 read(req, res, next, passthrough, debug, normalizedOptions)
35 }
36}

Callers

nothing calls this directly

Calls 2

normalizeOptionsFunction · 0.85
readFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…