{"name":"mimer","version":"1.0.0","description":"A simple Mime type getter","main":"dist/mimer.js","scripts":{"test":"npm run lint && npm run build && jest --ci","build":"mkdir -p dist && node transpile && uglifyjs --comments '/mimer/' dist/mimer.js -m -o dist/mimer.min.js --source-map url --mangle","lint":"jshint src/mimer.js","prepublish":"npm run test"},"repository":{"type":"git","url":"git://github.com/heldr/mimer.git"},"engines":{"node":">= 6.0"},"bin":{"mimer":"./bin/mimer"},"keywords":["mime","mimetype","file","extension","extensions"],"author":{"name":"Helder Santana"},"license":"MIT","devDependencies":{"jshint":"2.10.2","requirejs":"2.3.6","uglify-js":"3.5.4","jest":"^24.7.1","request":"^2.88.0"},"gitHead":"cb45144a3bec9309bc8284abb1585e51a7e4818e","bugs":{"url":"https://github.com/heldr/mimer/issues"},"homepage":"https://github.com/heldr/mimer#readme","_id":"mimer@1.0.0","_nodeVersion":"11.8.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-4ZJvCzfcwsBgPbkKXUzGoVZMWjv8IDIygkGzVc7uUYhgnK0t2LmGxxjdgH1i+pn0/KQfB5F/VKUJlfyTSOFQjg==","shasum":"32251bef4dc7a63184db3a1082ed9be3abe0f3db","tarball":"http://registry-npm.ywwl.com/mimer/download/mimer-1.0.0.tgz","fileCount":8,"unpackedSize":89876,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJctoerCRA9TVsSAnZWagAAv30P/1C8PPz8YfnYmU+c/ziE\nn+tdr/R6XeLesa6gH9sMRgMeNEP3WUwrGM3zg1LxOr5Yg1DfDsYLlvRWuV70\nlH0uxrteTJbXRt0fMooHsAOONroNWynwVqhw1PSDD/Db3S4i+worevS34Ooi\nGZjr6ph0ga0Q8WioBdROIyfRRd/fFnktlKBbxdoK5z6aFEaCux9CjJaBWMNA\ndl4Bm87x7cTKbw4WYw3sshCspxW81bhjZDCvaCHBFrR7iffsGpxT4AJw7YM9\n2AMBTCWkxwT6cSjDzj4Sov8t5a1VVeZ2JPOB8ZwRociajlmFlUwsI93CWIfO\nIgqo5mUDiKnekxkcOtPVZlWkxeAxLf5z4tuqW4cZj0TI7DuwrK7I647sLiRL\nPLR7vThKsTJnaWKqGTa+scmdedZkBJmTVy8hxpV8w9lbcPobMvbq8YGsqsQU\nANC2WKIcUa6RQYSESZNoqjTS69HSyG6swaaLUE6bg3LxPkT/fWJIzaNB9QyO\nIM1PMMRMQPffWqnQ+r7aCKPweAHDLc1BopxHo9t8tfI9smLT8UOAfmQF/tfY\nGHSq6XLs2ynFa66AkACSeTADZA/4DtDsza4MKe7lPvTJpi0AcG4NI4Qjdzri\nSY4t74BhOqZFRN0FfBoMAXdDP302jCQvFcZNdLGgK10JANutsGHJPTMFmdhF\ndqOm\r\n=XDkS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKdtR23nibl8xKmkHEqIiL9L8ZX+51yID0qqAvaENt8gIgdpn9QJR55+VrS1srNVlFfxqs2M2Q6hUwU/YzBJdJYkk="}],"size":25062,"noattachment":false,"key":"/mimer/-/mimer-1.0.0.tgz"},"maintainers":[{"name":"caiogondim","email":"me@caiogondim.com"},{"name":"helder","email":"heldr@me.com"},{"name":"ruyadorno","email":"contact@ruyadorno.com"}],"_npmUser":{"name":"helder","email":"ping@heldr.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mimer_1.0.0_1555466155164_0.8080085958771388"},"_hasShrinkwrap":false,"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":1555466155307,"_cnpm_publish_time":1555466155307,"dist-tags":{"latest":"2.0.2"}}