Name: js-handler/node_modules/restify/node_modules/mime/package.json
| 1: | { |
| 2: | "author": { |
| 3: | "name": "Robert Kieffer", |
| 4: | "email": "[email protected]", |
| 5: | "url": "http://github.com/broofa" |
| 6: | }, |
| 7: | "contributors": [ |
| 8: | { |
| 9: | "name": "Benjamin Thomas", |
| 10: | "email": "[email protected]", |
| 11: | "url": "http://github.com/bentomas" |
| 12: | } |
| 13: | ], |
| 14: | "dependencies": {}, |
| 15: | "description": "A comprehensive library for mime-type mapping", |
| 16: | "devDependencies": {}, |
| 17: | "keywords": [ |
| 18: | "util", |
| 19: | "mime" |
| 20: | ], |
| 21: | "main": "mime.js", |
| 22: | "name": "mime", |
| 23: | "repository": { |
| 24: | "url": "https://github.com/broofa/node-mime", |
| 25: | "type": "git" |
| 26: | }, |
| 27: | "version": "1.2.9", |
| 28: | "readme": "# mime\n\nComprehensive MIME type mapping API. Includes all 600+ types and 800+ extensions defined by the Apache project, plus additional types submitted by the node.js community.\n\n## Install\n\nInstall with [npm](http://github.com/isaacs/npm):\n\n npm install mime\n\n## API - Queries\n\n### mime.lookup(path)\nGet the mime type associated with a file. Performs a case-insensitive lookup using the extension in `path` (the substring after the last '/' or '.'). E.g.\n\n var mime = require('mime');\n\n mime.lookup('/path/to/file.txt'); // => 'text/plain'\n mime.lookup('file.txt'); // => 'text/plain'\n mime.lookup('.TXT'); // => 'text/plain'\n mime.lookup('htm'); // => 'text/html'\n\n### mime.extension(type)\nGet the default extension for `type`\n\n mime.extension('text/html'); // => 'html'\n mime.extension('application/octet-stream'); // => 'bin'\n\n### mime.charsets.lookup()\n\nMap mime-type to charset\n\n mime.charsets.lookup('text/plain'); // => 'UTF-8'\n\n(The logic for charset lookups is pretty rudimentary. Feel free to suggest improvements.)\n\n## API - Defining Custom Types\n\nThe following APIs allow you to add your own type mappings within your project. If you feel a type should be included as part of node-mime, see [requesting new types](https://github.com/broofa/node-mime/wiki/Requesting-New-Types).\n\n### mime.define()\n\nAdd custom mime/extension mappings\n\n mime.define({\n 'text/x-some-format': ['x-sf', 'x-sft', 'x-sfml'],\n 'application/x-my-type': ['x-mt', 'x-mtt'],\n // etc ...\n });\n\n mime.lookup('x-sft'); // => 'text/x-some-format'\n\nThe first entry in the extensions array is returned by `mime.extension()`. E.g.\n\n mime.extension('text/x-some-format'); // => 'x-sf'\n\n### mime.load(filepath)\n\nLoad mappings from an Apache \".types\" format file\n\n mime.load('./my_project.types');\n\nThe .types file format is simple - See the `types` dir for examples.\n", |
| 29: | "readmeFilename": "README.md", |
| 30: | "bugs": { |
| 31: | "url": "https://github.com/broofa/node-mime/issues" |
| 32: | }, |
| 33: | "_id": "[email protected]", |
| 34: | "dist": { |
| 35: | "shasum": "e12d8cb25ac26fbb67e7f2859c7cab83759d7082" |
| 36: | }, |
| 37: | "_from": "[email protected]", |
| 38: | "_resolved": "https://registry.npmjs.org/mime/-/mime-1.2.9.tgz" |
| 39: | } |
