{"_id":"@csstools/postcss-font-format-keywords","_rev":"259695","name":"@csstools/postcss-font-format-keywords","description":"Use unquoted format on @font-face CSS definitions.","dist-tags":{"latest":"2.0.2"},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"time":{"modified":"2023-03-27T17:09:06.000Z","created":"2022-01-25T19:00:23.541Z","2.0.2":"2023-02-08T08:36:45.546Z","2.0.1":"2023-01-28T07:39:35.752Z","2.0.0":"2023-01-24T09:05:54.962Z","1.0.1":"2022-07-08T16:21:33.050Z","1.0.0":"2022-01-25T19:00:23.541Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-font-format-keywords"},"versions":{"2.0.2":{"name":"@csstools/postcss-font-format-keywords","description":"Use unquoted format on @font-face CSS definitions.","version":"2.0.2","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","funding":{"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"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:exports":"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":"1a9091823394318083d2ed497a70646a04cb853c","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"_id":"@csstools/postcss-font-format-keywords@2.0.2","_nodeVersion":"18.13.0","_npmVersion":"9.4.1","dist":{"shasum":"d798d96f4af6cddcfee459f598c976e6011042d2","size":5530,"noattachment":false,"key":"/@csstools/postcss-font-format-keywords/-/@csstools/postcss-font-format-keywords-2.0.2.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-font-format-keywords/download/@csstools/postcss-font-format-keywords-2.0.2.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-font-format-keywords_2.0.2_1675845405406_0.25115174782460237"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-08T08:36:45.546Z","publish_time":1675845405546,"_cnpm_publish_time":1675845405546},"2.0.1":{"name":"@csstools/postcss-font-format-keywords","description":"Use unquoted format on @font-face CSS definitions.","version":"2.0.1","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","funding":{"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"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:exports":"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":"87bca1d7e24740cdf29ea86e12da9ead5f70c4fb","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"_id":"@csstools/postcss-font-format-keywords@2.0.1","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"47d2de91a3342bff3049c698e508215702db2f7e","size":5300,"noattachment":false,"key":"/@csstools/postcss-font-format-keywords/-/@csstools/postcss-font-format-keywords-2.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-font-format-keywords/download/@csstools/postcss-font-format-keywords-2.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-font-format-keywords_2.0.1_1674891575589_0.46027924768392325"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T07:39:35.752Z","publish_time":1674891575752,"_cnpm_publish_time":1674891575752},"2.0.0":{"name":"@csstools/postcss-font-format-keywords","description":"Use unquoted format on @font-face CSS definitions.","version":"2.0.0","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","funding":{"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":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{"prebuild":"npm run clean","build":"rollup -c ../../rollup/default.mjs","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true }); fs.mkdirSync('./dist');\"","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:exports":"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":"3ab17ec90bc201ae41f42f48c0636124dce2305e","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"_id":"@csstools/postcss-font-format-keywords@2.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"24d6a8eb19a8ab79160184f6c90d171dfd275c31","size":5271,"noattachment":false,"key":"/@csstools/postcss-font-format-keywords/-/@csstools/postcss-font-format-keywords-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-font-format-keywords/download/@csstools/postcss-font-format-keywords-2.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-font-format-keywords_2.0.0_1674551154758_0.08833004555110802"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-24T09:05:54.962Z","publish_time":1674551154962,"_cnpm_publish_time":1674551154962},"1.0.1":{"name":"@csstools/postcss-font-format-keywords","description":"Use unquoted format on @font-face CSS definitions.","version":"1.0.1","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","funding":{"type":"opencollective","url":"https://opencollective.com/csstools"},"engines":{"node":"^12 || ^14 || >=16"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.2"},"scripts":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","docs":"node ../../.github/bin/generate-docs/install.mjs","lint":"npm run lint:eslint && npm run lint:package-json","lint:eslint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","lint:package-json":"node ../../.github/bin/format-package-json.mjs","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:exports":"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":"66b85f3955fc07d06ef572011e4fdcf4ea6bd3d3","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"_id":"@csstools/postcss-font-format-keywords@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"677b34e9e88ae997a67283311657973150e8b16a","size":5328,"noattachment":false,"key":"/@csstools/postcss-font-format-keywords/-/@csstools/postcss-font-format-keywords-1.0.1.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-font-format-keywords/download/@csstools/postcss-font-format-keywords-1.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-font-format-keywords_1.0.1_1657297292851_0.42401031017883195"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-08T16:54:23.088Z","publish_time":1657297293050,"_cnpm_publish_time":1657297293050},"1.0.0":{"name":"@csstools/postcss-font-format-keywords","version":"1.0.0","description":"Use unquoted format on @font-face CSS definitions.","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-font-format-keywords#readme","engines":{"node":"^12 || ^14 || >=16"},"main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"scripts":{"build":"rollup -c ../../rollup/default.js","clean":"node -e \"fs.rmSync('./dist', { recursive: true, force: true });\"","lint":"eslint ./src --ext .js --ext .ts --ext .mjs --no-error-on-unmatched-pattern","prepublishOnly":"npm run clean && npm run build && npm run test","test":"node .tape.mjs && npm run test:exports","test:rewrite-expects":"REWRITE_EXPECTS=true node .tape.mjs","test:exports":"node ./test/_import.mjs && node ./test/_require.cjs"},"peerDependencies":{"postcss":"^8.3"},"keywords":["postcss-plugin","font","css","font-format-keywords","format","woff","woff2","truetype","opentype","embedded-opentype"],"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-font-format-keywords"},"volta":{"extends":"../../package.json"},"dependencies":{"postcss-value-parser":"^4.2.0"},"gitHead":"1b24d55f0dee5a9d3d9a5af4da515f5473add0f7","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"_id":"@csstools/postcss-font-format-keywords@1.0.0","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"7e7df948a83a0dfb7eb150a96e2390ac642356a1","size":5153,"noattachment":false,"key":"/@csstools/postcss-font-format-keywords/-/@csstools/postcss-font-format-keywords-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/@csstools/postcss-font-format-keywords/download/@csstools/postcss-font-format-keywords-1.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":""},{"name":"jonathantneal","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-font-format-keywords_1.0.0_1643137223413_0.560533574595591"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-25T19:00:32.449Z","publish_time":1643137223541,"_cnpm_publish_time":1643137223541}},"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=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/font-format-keywords.svg\" height=\"20\">][css-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\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","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-font-format-keywords#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"CC0-1.0"}