{"name":"mimer","version":"0.2.2","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"},"preferGlobal":true,"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":"316193831081eed3d0f995447ea57a04bbc7cd4e","bugs":{"url":"https://github.com/heldr/mimer/issues"},"homepage":"https://github.com/heldr/mimer#readme","_id":"mimer@0.2.2","_npmVersion":"5.6.0","_nodeVersion":"8.3.0","_npmUser":{"name":"helder","email":"heldr@me.com"},"dist":{"integrity":"sha512-WQCKAqskUMeg8CfcDP1Ba9MjyPbl6HClas5p3OgqAxsB7/4H8XEqWjaeD4VJzcFG7EZbyIylHDChFuXtzc9C6g==","shasum":"3dc34e1bd00f89802f76f094058b5b8fe0b188e3","tarball":"http://registry-npm.ywwl.com/mimer/download/mimer-0.2.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8l0AjlrUYqisZHooi3zGGpp8DjAnWkWz7Vbk/8zWe+AIhAPxn3tGGQ880PCmoce/s/KwisnjVBEl+pJx2r3s+mxlf"}],"size":19133,"noattachment":false,"key":"/mimer/-/mimer-0.2.2.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.2.tgz_1512962626452_0.954155778279528"},"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":1512962626527,"_cnpm_publish_time":1512962626527,"dist-tags":{"latest":"2.0.2"}}