{"name":"@csstools/postcss-normalize-display-values","version":"4.0.1","keywords":["block","css","display","flex","flow","flow-root","grid","inline","inline-block","inline-flex","inline-grid","inline-table","list-item","postcss-plugin","ruby","ruby-base","ruby-text","run-in","table","table-caption","table-cell"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"MIT-0","_id":"@csstools/postcss-normalize-display-values@4.0.1","maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"alaguna","email":"sombragriselros@gmail.com"},{"name":"romainmenke","email":"romainmenke@gmail.com"}],"homepage":"https://github.com/csstools/postcss-plugins#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"dist":{"shasum":"3738ecadb38cd6521c9565635d61aa4bf5457d27","tarball":"http://registry-npm.ywwl.com/@csstools/postcss-normalize-display-values/download/@csstools/postcss-normalize-display-values-4.0.1.tgz","fileCount":7,"integrity":"sha512-TQUGBuRvxdc7TgNSTevYqrL8oItxiwPDixk20qCB5me/W8uF7BPbhRrAvFuhEoywQp/woRsUZ6SJ+sU5idZAIA==","signatures":[{"sig":"MEUCIHwFm67WlPQNZ28ET3f6naLBxh0aVE8Pu/2uTb9pDmcHAiEAx+HEWSE57+gstCGrCoUJfUD+dC2IKrvqbKFj19z9xn0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8401,"size":3213,"noattachment":false,"key":"/@csstools/postcss-normalize-display-values/-/@csstools/postcss-normalize-display-values-4.0.1.tgz"},"main":"dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"funding":[{"url":"https://github.com/sponsors/csstools","type":"github"},{"url":"https://opencollective.com/csstools","type":"opencollective"}],"gitHead":"4507d3538312a804f7c37e9f8a18b3044209c7d7","scripts":{},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"repository":{"url":"git+https://github.com/csstools/postcss-plugins.git","type":"git","directory":"plugins/postcss-normalize-display-values"},"_npmVersion":"11.6.2","description":"Use two values display syntax for inner and outer display types.","directories":{},"_nodeVersion":"25.1.0","dependencies":{"postcss-value-parser":"^4.2.0"},"_hasShrinkwrap":false,"peerDependencies":{"postcss":"^8.4"},"_npmOperationalInternal":{"tmp":"tmp/postcss-normalize-display-values_4.0.1_1768065411722_0.7627434363766352","host":"s3://npm-registry-packages-npm-production"},"readme":"# PostCSS Normalize Display Values [<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-normalize-display-values.svg\" height=\"20\">][npm-url]\n[<img alt=\"Build Status\" src=\"https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg?branch=main\" 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/display-two-values.svg\" height=\"20\">][css-url]\n[<img alt=\"CSS Standard Status\" src=\"https://cssdb.org/images/badges/display-two-values.svg\" height=\"20\">][css-url]\n\n[PostCSS Normalize Display Values] lets you specify definition of outer and inner displays types for an element.\n\n```css\n.element {\n  display: inline flow-root;\n}\n\n/* becomes */\n\n.element {\n  display: inline-block;\n  display: inline flow-root;\n}\n```\n\n_See prior work by [cssnano](https://github.com/cssnano) here [postcss-normalize-display-values](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-display-values)\nTo ensure long term maintenance and to provide the needed features this plugin was recreated based on cssnano's work._\n\n## Usage\n\nAdd [PostCSS Normalize Display Values] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-normalize-display-values --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssNormalizeDisplayValues = require('@csstools/postcss-normalize-display-values');\n\npostcss([\n  postcssNormalizeDisplayValues(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Normalize Display Values] 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 preserved.\n\n```js\npostcssNormalizeDisplayValues({ preserve: false })\n```\n\n```css\n.element {\n  display: inline flow-root;\n}\n\n/* becomes */\n\n.element {\n  display: inline-block; \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/#display-two-values\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-normalize-display-values\n\n[CSS Fonts]: https://www.w3.org/TR/css-display-3/#the-display-properties\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 Normalize Display Values]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-normalize-display-values\n","publish_time":1768065411862,"_cnpm_publish_time":1768065411862,"dist-tags":{"latest":"5.0.1"}}