Spaces:
Paused
Paused
Download node_modules/body-parser/index.js from Leon4gr45/UserSyncFrontend: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/body-parser/index.js
- Command line
-
hf download hf://spaces/Leon4gr45/UserSyncFrontend/node_modules/body-parser/index.js
-
curl -L -o index.js https://huggingface.co/spaces/Leon4gr45/UserSyncFrontend/resolve/main/node_modules/body-parser/index.js
1.31 kB
| /*! | |
| * body-parser | |
| * Copyright(c) 2014-2015 Douglas Christopher Wilson | |
| * MIT Licensed | |
| */ | |
| /** | |
| * @typedef {Object} Parsers | |
| * @property {Function} json JSON parser | |
| * @property {Function} raw Raw parser | |
| * @property {Function} text Text parser | |
| * @property {Function} urlencoded URL-encoded parser | |
| */ | |
| /** | |
| * Module exports. | |
| * @type {Function & Parsers} | |
| */ | |
| exports = module.exports = bodyParser | |
| /** | |
| * JSON parser. | |
| * @public | |
| */ | |
| Object.defineProperty(exports, 'json', { | |
| configurable: true, | |
| enumerable: true, | |
| get: () => require('./lib/types/json') | |
| }) | |
| /** | |
| * Raw parser. | |
| * @public | |
| */ | |
| Object.defineProperty(exports, 'raw', { | |
| configurable: true, | |
| enumerable: true, | |
| get: () => require('./lib/types/raw') | |
| }) | |
| /** | |
| * Text parser. | |
| * @public | |
| */ | |
| Object.defineProperty(exports, 'text', { | |
| configurable: true, | |
| enumerable: true, | |
| get: () => require('./lib/types/text') | |
| }) | |
| /** | |
| * URL-encoded parser. | |
| * @public | |
| */ | |
| Object.defineProperty(exports, 'urlencoded', { | |
| configurable: true, | |
| enumerable: true, | |
| get: () => require('./lib/types/urlencoded') | |
| }) | |
| /** | |
| * Create a middleware to parse json and urlencoded bodies. | |
| * | |
| * @deprecated | |
| * @public | |
| */ | |
| function bodyParser () { | |
| throw new Error('The bodyParser() generic has been split into individual middleware to use instead.') | |
| } | |