{"_id":"postcss-discard-font-face","_rev":"11-8040b34a46d70aac9706d09a11d82fcb","name":"postcss-discard-font-face","description":"Discard font faces by type, with PostCSS.","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"postcss-discard-font-face","version":"1.0.0","description":"Discard unused font faces with PostCSS.","main":"index.js","scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js","test":"tape test.js | tap-spec"},"keywords":["css","font","optimise","optimisation","postcss","postcss-plugins","unused"],"license":"MIT","devDependencies":{"jshint":"^2.6.3","jshint-stylish":"^1.0.1","tap-spec":"^2.2.2","tape":"^3.5.0"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"dependencies":{"flatten":"0.0.1","uniqs":"^2.0.0","postcss":"^4.1.2"},"gitHead":"97d3d9bffbad2166e0bc1e6ed6ea4eb812efccb4","bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"_id":"postcss-discard-font-face@1.0.0","_shasum":"17a7bb2127a472a5ca5667200c0f7e4dec1ca4da","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.33","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"}],"dist":{"shasum":"17a7bb2127a472a5ca5667200c0f7e4dec1ca4da","tarball":"https://registry.npmjs.org/postcss-discard-font-face/-/postcss-discard-font-face-1.0.0.tgz","integrity":"sha512-f/3usTBjqIpu/sM+nCL6gDcFxWgxAEK1L+HJNaVou7guBT/3IOy6iE09E0D/FtiGkbOgf770fAoKBu2cGPhHjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+8yY4nAPkwAYK5DfNYdiopfRxEXFjr255k/oiBCzi9QIhALEIlqp5HcuWqp4gIMond/dNxPob4lsRH5F+M0hP0L8B"}]}},"1.0.1":{"name":"postcss-discard-font-face","version":"1.0.1","description":"Discard unused font faces with PostCSS.","main":"index.js","scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js","test":"tape test.js | tap-spec"},"keywords":["css","font","optimise","optimisation","postcss","postcss-plugins","unused"],"license":"MIT","devDependencies":{"jshint":"^2.6.3","jshint-stylish":"^1.0.1","tap-spec":"^2.2.2","tape":"^3.5.0"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"dependencies":{"flatten":"0.0.1","uniqs":"^2.0.0","postcss":"^4.1.2"},"gitHead":"49e873bf1d36fd0e39acff6f3dc9a326b997eacf","bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"_id":"postcss-discard-font-face@1.0.1","_shasum":"e58142d009f92c2979f59a7b0019c281c220b393","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.33","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"}],"dist":{"shasum":"e58142d009f92c2979f59a7b0019c281c220b393","tarball":"https://registry.npmjs.org/postcss-discard-font-face/-/postcss-discard-font-face-1.0.1.tgz","integrity":"sha512-IgpTUZi9FWTV/FzL6gtBlXFvAGigj/B2NAaOqNwxzvnshGx0AIsUYWG7OaFVST+YbSdZ8NRn5swR5WgX63KEeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtlypt8jobyXUu0c1PAAogosSu0ZUtmcxgTvjZWZJfqwIhALzCcFS7tBlol5YmcnTiQ79yQ5RFbbo30ngLNCVLX/vn"}]}},"2.0.0":{"name":"postcss-discard-font-face","version":"2.0.0","description":"Discard font faces by type, with PostCSS.","main":"index.js","scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js","test":"tape test.js | tap-spec"},"keywords":["css","font","filter","postcss","postcss-plugin"],"license":"MIT","devDependencies":{"jshint":"^2.6.3","jshint-stylish":"^1.0.1","tap-spec":"^2.2.2","tape":"^3.5.0"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}],"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"dependencies":{"balanced-match":"^0.2.0","postcss":"^4.1.11"},"gitHead":"dda6eb16a2cb429e3dd3f9096e8736794e32f99a","bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"_id":"postcss-discard-font-face@2.0.0","_shasum":"acf38335252752a99bb12b2b4659e37319ecad0e","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.2","_npmUser":{"name":"beneb","email":"therealbenbriggs@hotmail.com"},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"}],"dist":{"shasum":"acf38335252752a99bb12b2b4659e37319ecad0e","tarball":"https://registry.npmjs.org/postcss-discard-font-face/-/postcss-discard-font-face-2.0.0.tgz","integrity":"sha512-k9EAQTdi51lXpRVYqgvfVU4yix7rno5indxtLx+aAfkXmUpOz96N5pLwDkl5I2rl2Pzfq4dUbWG89rzGJxlXTw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHzhs8+5BpKoHYldO8uH/nDR0wo28dJk2Sfdb9faH74wIgE+Re7nfCzCOAeCscxN3e/ENIldj90naIcrV7Tk1S3sI="}]}},"2.0.1":{"name":"postcss-discard-font-face","version":"2.0.1","description":"Discard font faces by type, with PostCSS.","main":"index.js","scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js","test":"tape test.js | tap-spec"},"keywords":["css","font","filter","postcss","postcss-plugin"],"license":"MIT","devDependencies":{"jshint":"^2.6.3","jshint-stylish":"^1.0.1","tap-spec":"^2.2.2","tape":"^3.5.0"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}],"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"dependencies":{"balanced-match":"^0.2.0","postcss":"^4.1.11"},"gitHead":"d8e4f8cf4fb8f745946af1c0cebc245377e31b1d","bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"_id":"postcss-discard-font-face@2.0.1","_shasum":"a0a4d11c5fc33394b4424121a09282ce9bf3f166","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"trysound","email":"trysound@yandex.ru"},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"dist":{"shasum":"a0a4d11c5fc33394b4424121a09282ce9bf3f166","tarball":"https://registry.npmjs.org/postcss-discard-font-face/-/postcss-discard-font-face-2.0.1.tgz","integrity":"sha512-R5FHahz/qPCRXWWzqOa9cyckZIWdpQudfJFRu1186gvGvvMuUy6nO1FwGNx5+1OEdu8c7HZkCpd+o7bjVOazLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGdd3TPLIyBDmJ+dRM9vG7OgSzI3wreXzzw15FrUBo2RAiAlVFpL7hCE4i2o6qTRPH3gbCSAKS/vC0XA8QzfP3CCvA=="}]}},"2.1.0":{"name":"postcss-discard-font-face","version":"2.1.0","description":"Discard font faces by type, with PostCSS.","main":"index.js","scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js","test":"tape test.js | tap-spec"},"keywords":["css","font","filter","postcss","postcss-plugin"],"license":"MIT","devDependencies":{"jshint":"^2.6.3","jshint-stylish":"^1.0.1","tap-spec":"^2.2.2","tape":"^3.5.0"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}],"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"dependencies":{"balanced-match":"^0.2.0","postcss":"^4.1.11"},"gitHead":"2a5ce87b0ec6362cfcd5b3836f395955d8cc396a","bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"_id":"postcss-discard-font-face@2.1.0","_shasum":"fbf85414cb0f2c997069616cda754793be565de8","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"dist":{"shasum":"fbf85414cb0f2c997069616cda754793be565de8","tarball":"https://registry.npmjs.org/postcss-discard-font-face/-/postcss-discard-font-face-2.1.0.tgz","integrity":"sha512-lUe3iT50oWR3wbuQxdExdduBvTbVDILe4KKq7J+IH9AjguAeSOi+EXFM0p43O5Otji8HpbPCjdb1Ue0bQhUsrA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNrHR2e+Xi3rqaJVf3316xDB3hFIsZn7smUX2R+JyDFQIhAIM5Z5MNBH1l1IcbbSmcpqMSak84vwhqmEBOcIl+CPOj"}]},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}]},"3.0.0":{"name":"postcss-discard-font-face","version":"3.0.0","description":"Discard font faces by type, with PostCSS.","main":"index.js","scripts":{"lint":"jshint index.js --reporter node_modules/jshint-stylish/stylish.js","test":"tape test.js | tap-spec"},"files":["index.js","LICENSE-MIT"],"keywords":["css","font","filter","postcss","postcss-plugin"],"license":"MIT","devDependencies":{"jshint":"^2.9.2","jshint-stylish":"^2.2.0","tap-spec":"^4.1.1","tape":"^4.5.1"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}],"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"dependencies":{"balanced-match":"^0.4.1","postcss":"^5.0.21"},"gitHead":"939c8065e32c4d4bddb14dd13b69f22f95ef9c80","bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"_id":"postcss-discard-font-face@3.0.0","_shasum":"e2037a6a4d8b29b04ae97483ffea2c9405f9ea1c","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.1","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"dist":{"shasum":"e2037a6a4d8b29b04ae97483ffea2c9405f9ea1c","tarball":"https://registry.npmjs.org/postcss-discard-font-face/-/postcss-discard-font-face-3.0.0.tgz","integrity":"sha512-Qvy4n64Mo3MA1brso5D2feHV2Yp3rL0VtXBVCst+w2xjSP7GCosodp258kLZHRMdIeYOwZj2oCkFhBn9Il8RXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF/FnUjMObaaMm8PWoq1AUXfwb2wAg6wjDDFjRCH+cYPAiEA5vqMMM0tf3iO21JAY4Ox3DVd+fivs3p+hEHDlEjxmnw="}]},"maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"trysound@yandex.ru"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/postcss-discard-font-face-3.0.0.tgz_1462966063870_0.8965391735546291"}}},"readme":"# [postcss][postcss]-discard-font-face [![Build Status](https://travis-ci.org/ben-eb/postcss-discard-font-face.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-discard-font-face.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-discard-font-face.svg)][deps]\n\n> Discard font faces by type, with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-discard-font-face) do:\n\n```\nnpm install postcss-discard-font-face --save\n```\n\n## Example\n\nWhen discarding TTF fonts:\n\n### Input\n\n```css\n@font-face {\n    src: url(\"webfont.ttf\") format(\"truetype\"),\n         url(\"webfont.svg#svgFontName\") format(\"svg\");\n}\n```\n\n### Output\n\n```css\n@font-face {\n    src: url(\"webfont.svg#svgFontName\") format(\"svg\");\n}\n```\n\n## API\n\n### discardFonts([filter|options])\n\n#### filter\n\nType: `function|array`\nReturn: `boolean|string`\nArguments: The function is passed the URL of the font as the first argument,\nand the format as the second.\n\nFor each font, return false to remove, or a new string if you would like to\ntransform the URL.\n\n```js\n// Remove fonts of an unknown type\n\ndiscardFonts(function (url, format) {\n    if (~url.indexOf('.exe')) {\n        return false;\n    }\n});\n```\n\nAlternately, you can whitelist an array of types:\n\n```js\ndiscardFonts(['ttf', 'svg']);\n```\n\nWith this setting, all extensions that do not match will be removed.\n\n#### options\n\n##### font\n\nType: `object`\n\nEach key in this object should correspond to a font name, which will then be\ndiscarded if its properties do not correspond to the whitelisted properties.\nFor example, to only allow a font weight of `400` & a font style of `normal`,\nit would be configured like so:\n\n```js\ndiscardFonts({\n    font: {\n        'Open Sans': {\n            weight: [400],\n            style: ['normal']\n        }\n    }\n});\n```\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n## License\n\nMIT © Ben Briggs\n\n[ci]:      https://travis-ci.org/ben-eb/postcss-discard-font-face\n[deps]:    https://gemnasium.com/ben-eb/postcss-discard-font-face\n[npm]:     http://badge.fury.io/js/postcss-discard-font-face\n[postcss]: https://github.com/postcss/postcss\n","maintainers":[{"email":"chris@eppsteins.net","name":"chriseppstein"},{"email":"trysound@yandex.ru","name":"trysound"},{"email":"beneb.info@gmail.com","name":"beneb"}],"time":{"modified":"2022-06-24T09:50:11.156Z","created":"2015-04-02T15:38:08.584Z","1.0.0":"2015-04-02T15:38:08.584Z","1.0.1":"2015-04-02T15:41:08.018Z","2.0.0":"2015-06-12T16:01:07.484Z","2.0.1":"2015-06-22T19:13:46.082Z","2.1.0":"2015-07-31T12:33:21.977Z","3.0.0":"2016-05-11T11:27:45.175Z"},"homepage":"https://github.com/ben-eb/postcss-discard-font-face","keywords":["css","font","filter","postcss","postcss-plugin"],"repository":{"type":"git","url":"git://github.com/ben-eb/postcss-discard-font-face.git"},"author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"bugs":{"url":"https://github.com/ben-eb/postcss-discard-font-face/issues"},"license":"MIT","readmeFilename":"README.md","contributors":[{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"}]}