{"name":"mimer","version":"0.1.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"},"preferGlobal":true,"keywords":["mime","mimetype","file","extension","extensions"],"author":{"name":"Helder Santana"},"license":"MIT","devDependencies":{"jshint":"~2.4.2","lodash":"~2.4.1","uglify-js":"~2.4.11","browserify":"~3.24.1"},"bugs":{"url":"https://github.com/heldr/mimer/issues"},"homepage":"https://github.com/heldr/mimer","_id":"mimer@0.1.1","dist":{"shasum":"0df58370cf0dcfec4f5d5534af9c0a390ac65da1","tarball":"http://registry-npm.ywwl.com/mimer/download/mimer-0.1.1.tgz","integrity":"sha512-nSx38RnBuoAAPelO+DPyktrqVXpo5JEKx+ufOlbYOhjZQ5sFLwp4XGsNnPPh3FwSEc9INd3u6CBLmz8yLy5Syg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4S4ICDs/Upbw5s2wD1t6CLYMWWdo9kyNKFfBSSR0x8AiBIjTt+Cfp3rgt00ayRIwKXcnmgENpW9yfv5JTBnZC39Q=="}],"size":4489,"noattachment":false,"key":"/mimer/-/mimer-0.1.1.tgz"},"_from":"mimer","_npmVersion":"1.3.21","_npmUser":{"name":"helder","email":"helder.css@gmail.com"},"maintainers":[{"name":"helder","email":"helder.css@gmail.com"}],"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":1390636630431,"_cnpm_publish_time":1390636630431,"dist-tags":{"latest":"2.0.2"}}