GT2/GT2-Android/node_modules/formidable/package.json

115 lines
13 KiB
JSON
Raw Normal View History

{
"_args": [
[
{
"raw": "formidable@^1.1.1",
"scope": null,
"escapedName": "formidable",
"name": "formidable",
"rawSpec": "^1.1.1",
"spec": ">=1.1.1 <2.0.0",
"type": "range"
},
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/superagent"
]
],
"_from": "formidable@>=1.1.1 <2.0.0",
"_id": "formidable@1.1.1",
"_inCache": true,
"_location": "/formidable",
"_nodeVersion": "7.2.1",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/formidable-1.1.1.tgz_1484514649272_0.35996662196703255"
},
"_npmUser": {
"name": "kornel",
"email": "pornel@pornel.net"
},
"_npmVersion": "4.0.5",
"_phantomChildren": {},
"_requested": {
"raw": "formidable@^1.1.1",
"scope": null,
"escapedName": "formidable",
"name": "formidable",
"rawSpec": "^1.1.1",
"spec": ">=1.1.1 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/superagent"
],
"_resolved": "https://registry.npmjs.org/formidable/-/formidable-1.1.1.tgz",
"_shasum": "96b8886f7c3c3508b932d6bd70c4d3a88f35f1a9",
"_shrinkwrap": null,
"_spec": "formidable@^1.1.1",
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/superagent",
"bugs": {
"url": "http://github.com/felixge/node-formidable/issues"
},
"dependencies": {},
"description": "A node.js module for parsing form data, especially file uploads.",
"devDependencies": {
"findit": "^0.1.2",
"gently": "^0.8.0",
"hashish": "^0.0.4",
"request": "^2.11.4",
"urun": "^0.0.6",
"utest": "^0.0.8"
},
"directories": {
"lib": "./lib"
},
"dist": {
"shasum": "96b8886f7c3c3508b932d6bd70c4d3a88f35f1a9",
"tarball": "https://registry.npmjs.org/formidable/-/formidable-1.1.1.tgz"
},
"engines": {
"node": ">=0.8.0"
},
"gitHead": "7a36a8e932044252fe648c81dbd8cf837d0178d0",
"homepage": "https://github.com/felixge/node-formidable",
"license": "MIT",
"main": "./lib/index",
"maintainers": [
{
"name": "felixge",
"email": "felix@debuggable.com"
},
{
"name": "kornel",
"email": "pornel@pornel.net"
},
{
"name": "superjoe",
"email": "superjoe30@gmail.com"
},
{
"name": "svnlto",
"email": "me@svenlito.com"
},
{
"name": "tim-smart",
"email": "tim@fostle.com"
},
{
"name": "tunnckocore",
"email": "mameto_100@mail.bg"
}
],
"name": "formidable",
"optionalDependencies": {},
"readme": "# Formidable\n\n[![Build Status](https://travis-ci.org/felixge/node-formidable.svg?branch=master)](https://travis-ci.org/felixge/node-formidable)\n\n## Purpose\n\nA Node.js module for parsing form data, especially file uploads.\n\n## Current status\n\n**Maintainers Wanted:** Please see https://github.com/felixge/node-formidable/issues/412\n\nThis module was developed for [Transloadit](http://transloadit.com/), a service focused on uploading\nand encoding images and videos. It has been battle-tested against hundreds of GB of file uploads from\na large variety of clients and is considered production-ready.\n\n## Features\n\n* Fast (~500mb/sec), non-buffering multipart parser\n* Automatically writing file uploads to disk\n* Low memory footprint\n* Graceful error handling\n* Very high test coverage\n\n## Installation\n\n```sh\nnpm i -S formidable\n```\n\nThis is a low level package, and if you're using a high level framework such as Express, chances are it's already included in it. You can [read this discussion](http://stackoverflow.com/questions/11295554/how-to-disable-express-bodyparser-for-file-uploads-node-js) about how Formidable is integrated with Express.\n\nNote: Formidable requires [gently](http://github.com/felixge/node-gently) to run the unit tests, but you won't need it for just using the library.\n\n## Example\n\nParse an incoming file upload.\n```javascript\nvar formidable = require('formidable'),\n http = require('http'),\n util = require('util');\n\nhttp.createServer(function(req, res) {\n if (req.url == '/upload' && req.method.toLowerCase() == 'post') {\n // parse a file upload\n var form = new formidable.IncomingForm();\n\n form.parse(req, function(err, fields, files) {\n res.writeHead(200, {'content-type': 'text/plain'});\n res.write('received upload:\\n\\n');\n res.end(util.inspect({fields: fields, files: files}));\n });\n\n return;\n }\n\n // show a file upload form\n res.writeHead(200, {'content-type': 'text/html'});\n res.end(\n '<form action=\"/upload\" enctype=\"multipart/form-data\" method=\"post\">'+\n '<input type=\"text\" name=\"title\"><br>'+\n '<input type=\"file\" name=\"upload\" multiple=\"multiple\"><br>'+\n '<input type=\"submit\" value=\"Upload\">'+\n '</form>'\n );\n}).listen(8080);\n```\n## API\n\n### Formidable.IncomingForm\n```javascript\nvar form = new formidable.IncomingForm()\n```\nCreates a new incoming form.\n\n```javascript\nform.encoding = 'utf-8';\n```\nSets encoding for incoming form fields.\n\n```javascript\nform.uploadDir = \"/my/dir\";\n```\nSets the directory for placing file uploads in. You can move them later on using\n`fs.rename()`. The default is `os.tmpdir()`.\n\n```javascript\nform.keepExtensions = false;\n```\nIf you want the files written to `form.uploadDir` to include the extensions of the original files, set this property to `true`.\n\n```javascript\nform.type\n```\nEither 'multipart' or 'urlencoded' depending on the incoming request.\n\n```javascript\nform.maxFieldsSize = 2 * 1024 * 1024;\n```\nLimits the amount of memory all fields together (except files) can allocate in bytes.\nIf this value is exceeded, an `'error'` event is emitted. The default\nsize is 2MB.\n\n```javascript\nform.maxFields = 1000;\n```\nLimits the number of fields that the querystring parser will decode. Defaults\nto 1000 (0 for unlimited).\n\n```javascript\nform.hash = false;\n```\nIf you want checksums calculated for incoming files, set this to either `'sha1'` or `'md5'`.\n\n```javascript\nform.multiples = false;\n```\nIf this option is enabled, when you call `form.parse`, the `files` argument will contain arrays of files for inputs which submit multiple files using the HTML5 `multiple` attribute.\n\n```javascript\nform.bytesReceived\n```\nThe amount of bytes received for this form so far.\n\n```javascript\nform.bytesExpected\n```\nThe expected number of bytes in this form.\n\n```javascript\nform.parse(request, [cb]);\n```\nParses an incoming node.js `request` containing form data. If `cb` is provided, all fields and f
"readmeFilename": "Readme.md",
"repository": {
"type": "git",
"url": "git://github.com/felixge/node-formidable.git"
},
"scripts": {
"clean": "rm test/tmp/*",
"test": "node test/run.js"
},
"version": "1.1.1"
}