{"_id":"postcss-minify-font-values@9.0.9","bugs":{"url":"https://github.com/cssnano/cssnano/issues"},"dist":{"shasum":"08b32cf2985ac5d157fd8a056786fb1ddd77a836","tarball":"http://registry-npm.ywwl.com/postcss-minify-font-values/download/postcss-minify-font-values-9.0.9.tgz","fileCount":19,"integrity":"sha512-eJkOtHU/zZWJJ7c1MWgalpACGV0sERvtowpWDrgr9Ys0seX5vFBx9pWLOrN8eYO2TIOfMvatMhvgtGKtre1gsg==","signatures":[{"sig":"MEUCIQDW88Bv/stbVnTIm2rWT5Vbu4plcV8J2e6Yk/ZVJgph3gIgPELc+W3WFM7FFTCA2raaPhcVEClvKFtarQ/MNEIonSY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFKvYCDGxwxhAXmVNmU+nkMjTw9uSPox2axlmReNGMRzAiEArfZntfoHczEzgEuNUzlk89Y92dKnepcaOh8i0wzjIQM="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/postcss-minify-font-values@9.0.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":22818,"size":7882,"noattachment":false,"key":"/postcss-minify-font-values/-/postcss-minify-font-values-9.0.9.tgz"},"main":"./src/index.js","name":"postcss-minify-font-values","type":"module","types":"./types/index.d.ts","author":"Bogdan Chadkin <trysound@yandex.ru>","engines":{"node":"^22.22.3 || ^24.15.0 || >=26.0"},"exports":{".":{"types":"./types/index.d.ts","default":"./src/index.js"},"./package.json":"./package.json"},"license":"MIT","scripts":{"test":"node --test","acquire":"node ./script/acquire.js"},"version":"9.0.9","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"c3be001d-5533-4755-b121-e00b17acd54d"}},"homepage":"https://github.com/cssnano/cssnano","keywords":["css","font","font-family","font-weight","optimise","postcss-plugin"],"repository":{"url":"git+https://github.com/cssnano/cssnano.git","type":"git"},"description":"Minify font declarations with PostCSS","directories":{},"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.es"},{"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"}],"dependencies":{"cssnano-utils":"^9.0.0","@csstools/css-tokenizer":"^4.0.2"},"_hasShrinkwrap":false,"devDependencies":{"postcss":"^8.5.29","@webref/css":"8.7.6"},"peerDependencies":{"postcss":"^8.5.29"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-minify-font-values_9.0.9_1791666707861_0.9000634540441619"},"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":1791666707943,"_cnpm_publish_time":1791666707943,"dist-tags":{"latest":"9.0.9","next":"5.0.0-rc.2","nightly":"4.0.0-nightly.2020.2.6"}}