{"bugs":{"url":"https://github.com/hapijs/subtext/issues"},"dist":{"shasum":"db005802b15449b57163a4fcf3396d5256e36fc5","tarball":"https://registry.npmjs.org/subtext/-/subtext-5.1.3.tgz","fileCount":5,"integrity":"sha512-Zg2OnZnkDQr120xaw96FpZeTIlLBZB9JN2nfyzsY42tejbynYLWol/Pgdek26TXA0e24SGUg5yrHu5hKrD3dlw==","signatures":[{"sig":"MEUCIFcVRXhv/wNwlFYFHD+5zUUkicj13it/4Ir5jLeu26keAiEAoOfTkBEKbNrhjas+958QpGrSZhC39RzjRltnmoCNIcI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15911},"main":"lib/index.js","name":"subtext","readme":"# subtext\n\nHTTP payload parser.\n\n[![Build Status](https://travis-ci.org/hapijs/subtext.svg?branch=v5-commercial)](https://travis-ci.org/hapijs/subtext)\n\n## Example\n\n```javascript\nconst Http = require(\"http\");\nconst Subtext = require(\"subtext\");\n\nHttp.createServer((request, response) => {\n  Subtext.parse(\n    request,\n    null,\n    { parse: true, output: \"data\" },\n    (err, parsed) => {\n      response.writeHead(200, { \"Content-Type\": \"text/plain\" });\n      response.end(\"Payload contains: \" + parsed.payload.toString());\n    },\n  );\n}).listen(1337, \"127.0.0.1\");\n\nconsole.log(\"Server running at http://127.0.0.1:1337/\");\n```\n\n## API\n\nSee the [API Reference](API.md)\n\n### Warning for subtext on Node below v4.3.2\n\nA Node bug in versions below Node v4.3.2 meant that the `Buffer.byteLength` function did not work correctly, and as such, using `maxBytes` options with multipart payloads will mistake the file buffer size to be incorrectly as bigger than it is. Your options here are either to upgrade to Node version greater than v4.3.2 or increase maxBytes to allow some error in calculation. [Background info in this issue here](https://github.com/hapijs/subtext/pull/32).\n","engines":{"node":">=6.0.0"},"gitHead":"0537f626f42b83ca58eedd60e6eb6125a3df4d2e","license":"SEE LICENSE IN LICENSE.md","scripts":{"test":"lab -a code -t 100 -L -l","test-cov-html":"lab -a code -r html -o coverage.html -l"},"_npmUser":{"name":"nargonath","email":"jonas.pauthier@gmail.com"},"homepage":"https://github.com/hapijs/subtext#readme","keywords":["http","payload","file","stream","multipart"],"deprecated":"This module has moved and is now available at @hapi/subtext. Please update your dependencies as this version is no longer maintained and may contain bugs and security issues.","repository":{"url":"git://github.com/hapijs/subtext.git","type":"git"},"_npmVersion":"10.2.1","description":"HTTP payload parsing","directories":{},"maintainers":[{"name":"nargonath","email":"jonas.pauthier@gmail.com"},{"name":"devinivy","email":"devinivy@gmail.com"},{"name":"marsup","email":"nicolas@morel.io"},{"name":"nlf","email":"quitlahok@gmail.com"}],"_nodeVersion":"18.18.1","dependencies":{"pez":"2.x.x","boom":"5.x.x","hoek":"4.x.x","wreck":"12.x.x","bourne":"1.x.x","content":"^3.1.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"lab":"14.x.x","code":"4.x.x","form-data":"2.1.x"},"_npmOperationalInternal":{"tmp":"tmp/subtext_5.1.3_1704536513524_0.8082644877435818","host":"s3://npm-registry-packages"},"_id":"subtext@5.1.3","version":"5.1.3"}