{"name":"mimer","version":"0.2.3","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":"bcfb20fa821442dad2a9362397a8ade48803f039","bugs":{"url":"https://github.com/heldr/mimer/issues"},"homepage":"https://github.com/heldr/mimer#readme","_id":"mimer@0.2.3","_npmVersion":"5.6.0","_nodeVersion":"8.3.0","_npmUser":{"name":"helder","email":"heldr@me.com"},"dist":{"integrity":"sha512-cICHJPMZUdZMqWaOQ+Eh0hHo1R6IUCiBee7WvIGGUJsZyjdMUInxQVmyu8hKj5uCy+Bi+Wlp/EsdUR61yOdWOw==","shasum":"8808c0d03fb2b1273b81ae25a6e52e04ce18dce4","tarball":"http://registry-npm.ywwl.com/mimer/download/mimer-0.2.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE01O5VlyBRc2voqz7sODjqgxSobKSmcMj1i9h94FDzMAiBnq1MIUHzR2adXSTfNcylkNBf++qr7W+EhLDo2DhsI6A=="}],"size":19119,"noattachment":false,"key":"/mimer/-/mimer-0.2.3.tgz"},"maintainers":[{"name":"caiogondim","email":"me@caiogondim.com"},{"name":"helder","email":"heldr@me.com"},{"name":"ruyadorno","email":"contact@ruyadorno.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimer-0.2.3.tgz_1512962963379_0.5110453052911907"},"directories":{},"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":1512962963496,"_cnpm_publish_time":1512962963496,"dist-tags":{"latest":"2.0.2"}}