{"name":"mimer","version":"0.3.1","description":"A simple Mime type getter","main":"mimer.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"git://github.com/heldr/mimer.git"},"engines":{"node":">= 0.8"},"bin":{"mimer":"./bin/mimer"},"keywords":["mime","mimetype","file","extension","extensions"],"author":{"name":"Helder Santana"},"license":"MIT","devDependencies":{"chai":"~1.9.1","jshint":"~2.4.4","phantomjs":"^2.1.7","requirejs":"~2.1.11","uglify-js":"^2.8.29"},"gitHead":"4d56c961ff61cb5de6cac856d08c4eec4ebf401d","bugs":{"url":"https://github.com/heldr/mimer/issues"},"homepage":"https://github.com/heldr/mimer#readme","_id":"mimer@0.3.1","_npmVersion":"5.6.0","_nodeVersion":"8.3.0","_npmUser":{"name":"helder","email":"heldr@me.com"},"dist":{"integrity":"sha512-ARM4nxZ83+v5wOBCMojC5KyE4c4EE5vsX7p2pzd2OYx7brkj2PDcnb5+Frd3D+OebFUqUw4zZFOLLOTw+dVlXw==","shasum":"99ce5285d4b8f62f787a45b7658ce21b0522f87a","tarball":"http://registry-npm.ywwl.com/mimer/download/mimer-0.3.1.tgz","fileCount":12,"unpackedSize":60985,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgA4hbReUxfS/51GJxPQt1xN03ISrueM4q9BnM/ZkgOAiBa2kyx8zUbAu7aJ822dnnE24NXDfVbRlqt+tGZ4RvXRQ=="}],"size":17991,"noattachment":false,"key":"/mimer/-/mimer-0.3.1.tgz"},"maintainers":[{"name":"caiogondim","email":"me@caiogondim.com"},{"name":"helder","email":"heldr@me.com"},{"name":"ruyadorno","email":"contact@ruyadorno.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimer_0.3.1_1518306248743_0.5026057024182702"},"_hasShrinkwrap":false,"deprecated":"Mimer 1.0 released. See more in https://github.com/data-uri/mimer/releases/tag/v1.0.0","readme":"# Mimer [![Build Status](https://github.com/data-uri/mimer/actions/workflows/main.yml/badge.svg?branch=main)](https://github.com/data-uri/mimer/actions/workflows/main.yml?query=branch%3Amain) [![install size](https://packagephobia.com/badge?p=mimer)](https://packagephobia.com/result?p=mimer)\n\nA file extension to [MIME](http://en.wikipedia.org/wiki/MIME) type module. Uses [mime-db](https://npm.im/mime-db) data but with zero dependencies.\n\n## Getting started\n`npm install mimer` or `npx mimer <file>`.\n\n### Module\n```js\nconst mimer = require('mimer');\n\nmimer('.pdf'); // -> \"application/pdf\"\nmimer('pdf'); // -> \"application/pdf\"\nmimer('../readme.pdf'); // -> \"application/pdf\"\nmimer('pedefe'); // -> \"application/octet-stream\"\n```\n\n#### Extension Map\n```js\nconst mimer = require('mimer');\nconst mimerMap = require('mimer/map');\n\nmimerMap.get('pdf'); // -> \"application/pdf\"\nmimerMap.set('graphql', 'application/graphql');\nmimer('content.graphql'); // -> \"application/graphql\"\n```\n\n#### Safe mode\nIn case you want to avoid changes on original Map for safety.\n```js\nconst mimer = require('mimer/safe');\nconst mimerMap = require('mimer/map');\n\nmimerMap.set('graphql', 'application/graphql');\nmimer('content.graphql'); // -> \"application/octet-stream\"\n```\n\n## CLI\n\n```sh\nnpm install -g mimer\nmimer readme.pdf\n```\nor just\n\n```sh\nnpx mimer readme.pdf\n```\n\n## Contribute\n\nJust create a new Github Codespace or:\n\n```sh\n$ git clone https://github.com/data-uri/mimer.git\n$ cd mimer\n$ npm i\n$ npm test\n```\n\n## [Changelog](https://github.com/data-uri/mimer/releases).\n\n## License\n\nMIT License\n(c) [Helder Santana](http://heldr.com)\n","publish_time":1518306248824,"_cnpm_publish_time":1518306248824,"dist-tags":{"latest":"2.0.2"}}