{"name":"postcss-minify-font-values","version":"7.0.1","keywords":["css","font","font-family","font-weight","optimise","postcss-plugin"],"author":{"name":"Bogdan Chadkin","email":"trysound@yandex.ru"},"license":"MIT","_id":"postcss-minify-font-values@7.0.1","maintainers":[{"name":"beneb","email":"beneb.info@gmail.com"},{"name":"trysound","email":"opensource@trysound.io"},{"name":"ludovicofischer","email":"livrerie@gmail.com"},{"name":"ai","email":"andrey@sitnik.ru"},{"name":"chriseppstein","email":"chris@eppsteins.net"},{"name":"andyjansson","email":"jansson.andy@gmail.com"},{"name":"evilebottnawi","email":"sheo13666q@gmail.com"},{"name":"cssnano-bot","email":"sahaaniketh@gmail.com"}],"homepage":"https://github.com/cssnano/cssnano","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"6fb4770131b31fd5a2014bd84e32f386a3406664","tarball":"http://registry-npm.ywwl.com/postcss-minify-font-values/download/postcss-minify-font-values-7.0.1.tgz","fileCount":18,"integrity":"sha512-2m1uiuJeTplll+tq4ENOQSzB8LRnSUChBv7oSyFLsJRtUgAAJGP6LLz0/8lkinTgxrmJSPOEhgY1bMXOQ4ZXhQ==","signatures":[{"sig":"MEUCIEKD9vMTabhC0dS04T3/h5k5H/yRj42glmVeQkhTa8WOAiEAh9qV7IolZn2stwl5je2wQk++Ylzixry5uhkuz9mNmtw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18587,"size":6536,"noattachment":false,"key":"/postcss-minify-font-values/-/postcss-minify-font-values-7.0.1.tgz"},"main":"src/index.js","_from":"file:postcss-minify-font-values-7.0.1.tgz","types":"types/index.d.ts","engines":{"node":"^18.12.0 || ^20.9.0 || >=22.0"},"_npmUser":{"name":"ludovicofischer","email":"livrerie@gmail.com"},"_resolved":"/tmp/eeb11e11622ed49a35203ef5ba26a01a/postcss-minify-font-values-7.0.1.tgz","_integrity":"sha512-2m1uiuJeTplll+tq4ENOQSzB8LRnSUChBv7oSyFLsJRtUgAAJGP6LLz0/8lkinTgxrmJSPOEhgY1bMXOQ4ZXhQ==","repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"_npmVersion":"10.8.2","description":"Minify font declarations with PostCSS","directories":{},"_nodeVersion":"20.19.1","dependencies":{"postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.3"},"peerDependencies":{"postcss":"^8.4.32"},"_npmOperationalInternal":{"tmp":"tmp/postcss-minify-font-values_7.0.1_1746539658607_0.6440044277449903","host":"s3://npm-registry-packages-npm-production"},"readme":"# postcss-minify-font-values\n\n> Minify font declarations with PostCSS.\n\nThis module will try to minimise the `font-family`, `font-weight` and `font` shorthand\nproperties; it can unquote font families where necessary, detect & remove\nduplicates, and cut short a declaration after it finds a keyword. For more\nexamples, see the [tests](test).\n\n```css\nh1 {\n  font:bold 2.2rem/.9 \"Open Sans Condensed\", sans-serif;\n}\n\np {\n  font-family: \"Helvetica Neue\", Arial, sans-serif, Helvetica;\n  font-weight: normal;\n}\n```\n\n```css\nh1 {\n  font:700 2.2rem/.9 Open Sans Condensed,sans-serif\n}\n\np {\n  font-family: Helvetica Neue,Arial,sans-serif;\n  font-weight: 400;\n}\n```\n\n## API\n\n### minifyFontValues([options])\n\n#### options\n\n##### removeAfterKeyword\n\nType: `boolean`\nDefault: `false`\n\nPass `true` to remove font families after the module encounters a font keyword,\nfor example `sans-serif`.\n\n##### removeDuplicates\n\nType: `boolean`\nDefault: `true`\n\nPass `false` to disable the module from removing duplicated font families.\n\n##### removeQuotes\n\nType: `boolean` | `(prop: string) => '' | 'font' | 'font-family' | 'font-weight'`\nDefault: `true`\n\nPass `false` to disable the module from removing quotes from font families.\nNote that oftentimes, this is a *safe optimisation* & is done safely. For more\ndetails, see [Mathias Bynens' article][mathias].\n\nPass a function to determine whether a css variable is one of `font`, `font-family`, and `font-weight` to determine whether the variable needs to remove quotes.\n\n## Usage\n\n```js\npostcss([ require('postcss-minify-font-values') ])\n```\n\nSee [PostCSS] docs for examples for your environment.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/main/CONTRIBUTORS.md).\n\n# License\n\nMIT © [Bogdan Chadkin](mailto:trysound@yandex.ru)\n\n[mathias]: https://mathiasbynens.be/notes/unquoted-font-family\n[PostCSS]: https://github.com/postcss/postcss\n","publish_time":1746539658792,"_cnpm_publish_time":1746539658792,"dist-tags":{"latest":"9.0.9","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}