{"name":"@csstools/postcss-font-format-keywords","description":"Use unquoted format on @font-face CSS definitions.","version":"3.0.0","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":"^14 || ^16 || >=18"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"devDependencies":{"@csstools/postcss-tape":"*"},"scripts":{"build":"rollup -c ../../rollup/default.mjs","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run build && npm run test","test":"node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-font-format-keywords#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-font-format-keywords"},"keywords":["css","embedded-opentype","font","font-format-keywords","format","opentype","postcss-plugin","truetype","woff","woff2"],"csstools":{"exportName":"postcssFontFormatKeywords","humanReadableName":"PostCSS Font Format Keywords"},"volta":{"extends":"../../package.json"},"gitHead":"de0c95a3a2efef0fefb577c4fd177f02c966a3a7","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"_id":"@csstools/postcss-font-format-keywords@3.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-ntkGj+1uDa/u6lpjPxnkPcjJn7ChO/Kcy08YxctOZI7vwtrdYvFhmE476dq8bj1yna306+jQ9gzXIG/SWfOaRg==","shasum":"9ca3a3ca67122862addf8a1c0c61a6db02dea1cc","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-font-format-keywords/download/@csstools/postcss-font-format-keywords-3.0.0.tgz","fileCount":8,"unpackedSize":8803,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQA5tFNc1jAdSq4/qtZF4NOT6xK2zHRsLMHVnfqlv2+AiAz/Sejxk8v0xgzP/Q5e9XdD4b8ZG7jzwUkEKaksVrx5g=="}],"size":3620,"noattachment":false,"key":"/@csstools/postcss-font-format-keywords/-/@csstools/postcss-font-format-keywords-3.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-font-format-keywords_3.0.0_1688372003344_0.9421344674030452"},"_hasShrinkwrap":false,"readme":"# PostCSS Font Format [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][postcss]\n\n[<img alt=\"npm version\" src=\"https://img.shields.io/npm/v/@csstools/postcss-font-format-keywords.svg\" height=\"20\">][npm-url]\n[<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/workflows/test/badge.svg\" height=\"20\">][cli-url]\n[<img alt=\"Discord\" src=\"https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white\">][discord]\n<br><br>\n[<img alt=\"Baseline Status\" src=\"https://cssdb.org/images/badges-baseline/font-format-keywords.svg\" height=\"20\">][css-url]\n[<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/font-format-keywords.svg\" height=\"20\">][css-url]\n\n[PostCSS Font Format Keywords] lets you specify font formats as keywords, following the [CSS Fonts] specification.\n\n```pcss\n@font-face {\n  src: url(file.woff2) format(woff2);\n}\n\n/* becomes */\n\n@font-face {\n  src: url(file.woff2) format(\"woff2\");\n}\n```\n\n_See prior work by [valtlai](https://github.com/valtlai) here [postcss-font-format-keywords](https://github.com/valtlai/postcss-font-format-keywords)\nTo ensure long term maintenance and to provide the needed features this plugin was recreated based on valtlai's work._\n\n## Usage\n\nAdd [PostCSS Font Format Keywords] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-font-format-keywords --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssFontFormatKeywords = require('@csstools/postcss-font-format-keywords');\n\npostcss([\n  postcssFontFormatKeywords(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Font Format Keywords] runs in all Node environments, with special\ninstructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- |\n\n## Options\n\n### preserve\n\nThe `preserve` option determines whether the original source\nis preserved. By default, it is not preserved.\n\n```js\npostcssFontFormatKeywords({ preserve: true })\n```\n\n```pcss\n@font-face {\n  src: url(file.woff2) format(woff2);\n}\n\n/* becomes */\n\n@font-face {\n  src: url(file.woff2) format(\"woff2\");\n  src: url(file.woff2) format(woff2);\n}\n```\n\n[postcss]: https://github.com/postcss/postcss\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#font-format-keywords\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-font-format-keywords\n\n[CSS Fonts]: https://www.w3.org/TR/css-fonts-4/#font-format-values\n[Gulp PostCSS]: https://github.com/postcss/gulp-postcss\n[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Loader]: https://github.com/postcss/postcss-loader\n[PostCSS Font Format Keywords]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-font-format-keywords\n","publish_time":1688372003552,"_cnpm_publish_time":1688372003552,"dist-tags":{"latest":"5.0.0"}}