{"_id":"@csstools/postcss-logical-resize","_rev":"4266102","name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"time":{"modified":"2026-04-06T16:28:20.000Z","created":"2023-01-21T21:49:22.424Z","4.0.0":"2026-01-14T07:23:37.934Z","3.0.0":"2024-08-03T21:37:47.720Z","2.0.1":"2023-12-15T23:19:33.966Z","2.0.0":"2023-07-03T08:14:49.417Z","1.0.1":"2023-01-28T07:44:04.358Z","1.0.0":"2023-01-21T21:49:22.424Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"versions":{"4.0.0":{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"4.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=20.19.0"},"type":"module","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"gitHead":"9af4b59e73a512b5a97d3994f1f09b1ffa8c5aa8","_id":"@csstools/postcss-logical-resize@4.0.0","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"shasum":"4fe1e0e8e83ba721bf3afc6810535bc9f1ca9967","size":3364,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-4.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/postcss-logical-resize_4.0.0_1768375417799_0.213698697407249"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-14T07:23:37.934Z","publish_time":1768375417934,"_source_registry_name":"default","_cnpm_publish_time":1768375417934},"3.0.0":{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"3.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.com"}],"license":"MIT-0","funding":[{"type":"github","url":"https://github.com/sponsors/csstools"},{"type":"opencollective","url":"https://opencollective.com/csstools"}],"engines":{"node":">=18"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"scripts":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"_id":"@csstools/postcss-logical-resize@3.0.0","gitHead":"b25122cff283dfded891ee2ac883d9f092c27b07","types":"./dist/index.d.ts","_nodeVersion":"22.1.0","_npmVersion":"10.7.0","dist":{"shasum":"4df0eeb1a61d7bd85395e56a5cce350b5dbfdca6","size":3522,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-3.0.0.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-resize_3.0.0_1722721067424_0.7132108266576873"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-08-03T21:37:47.720Z","publish_time":1722721067720,"_source_registry_name":"default","_cnpm_publish_time":1722721067720},"2.0.1":{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"2.0.1","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.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"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.mjs"},"require":{"default":"./dist/index.cjs"}}},"dependencies":{"postcss-value-parser":"^4.2.0"},"peerDependencies":{"postcss":"^8.4"},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"_id":"@csstools/postcss-logical-resize@2.0.1","gitHead":"59b7d7267d21a7863196ab3c9e426940c4d98f70","types":"./dist/index.d.ts","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"a46c1b51055db96fb63af3bfe58909c773aea377","size":3878,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-2.0.1.tgz"},"_npmUser":{"name":"romainmenke","email":"romainmenke@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-resize_2.0.1_1702682373756_0.6474400259140747"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-12-15T23:19:33.966Z","publish_time":1702682373966,"_source_registry_name":"default","_cnpm_publish_time":1702682373966},"2.0.0":{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"2.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.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 && node ../../.github/bin/generate-docs/readme.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-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"csstools":{"cssdbId":"logical-resize","exportName":"postcssLogicalResize","humanReadableName":"PostCSS Logical Resize","specUrl":"https://www.w3.org/TR/css-logical-1/"},"volta":{"extends":"../../package.json"},"gitHead":"8fc3d37fdd7f4060cd09384c4854de48c75447e0","_id":"@csstools/postcss-logical-resize@2.0.0","_nodeVersion":"18.15.0","_npmVersion":"9.5.0","dist":{"shasum":"751bd5aab335c9973e346e3edacb2a0a16fa8296","size":4495,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-2.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-resize_2.0.0_1688372089201_0.6978516364150988"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-07-03T08:14:49.417Z","publish_time":1688372089417,"_source_registry_name":"default","_cnpm_publish_time":1688372089417},"1.0.1":{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"1.0.1","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.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 && node ../../.github/bin/generate-docs/readme.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-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"csstools":{"cssdbId":"logical-resize","exportName":"postcssLogicalResize","humanReadableName":"PostCSS Logical Resize","specUrl":"https://www.w3.org/TR/css-logical-1/"},"volta":{"extends":"../../package.json"},"gitHead":"b8a730f8e39418fb8b6476c124263fc909d50693","_id":"@csstools/postcss-logical-resize@1.0.1","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"826d3de929d7d786c32c2c118f78e813a1c2cdec","size":6540,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-1.0.1.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-resize_1.0.1_1674891844173_0.14806703149471034"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-28T07:44:04.358Z","publish_time":1674891844358,"_cnpm_publish_time":1674891844358},"1.0.0":{"name":"@csstools/postcss-logical-resize","description":"Use logical values in the resize property","version":"1.0.0","contributors":[{"name":"Antonio Laguna","email":"antonio@laguna.es","url":"https://antonio.laguna.es"},{"name":"Romain Menke","email":"romainmenke@gmail.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 && node ../../.github/bin/generate-docs/readme.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-logical-resize#readme","repository":{"type":"git","url":"git+https://github.com/csstools/postcss-plugins.git","directory":"plugins/postcss-logical-resize"},"bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"keywords":["block","css","inline","logical","postcss","postcss-plugin","resize"],"csstools":{"cssdbId":"logical-resize","exportName":"postcssLogicalResize","humanReadableName":"PostCSS Logical Resize","specUrl":"https://www.w3.org/TR/css-logical-1/"},"volta":{"extends":"../../package.json"},"gitHead":"eb9d2768574cb83d485e91fdaaf5a7cdec6361b7","_id":"@csstools/postcss-logical-resize@1.0.0","_nodeVersion":"18.8.0","_npmVersion":"8.18.0","dist":{"shasum":"4f0942ec91c5e09524624e4669904b95b348ef53","size":6496,"noattachment":false,"key":"/@csstools/postcss-logical-resize/-/@csstools/postcss-logical-resize-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@csstools/postcss-logical-resize/download/@csstools/postcss-logical-resize-1.0.0.tgz"},"_npmUser":{"name":"alaguna","email":"sombragriselros@gmail.com"},"directories":{},"maintainers":[{"name":"alaguna","email":"a.laguna@funcion13.com"},{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},{"name":"romainmenke","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-logical-resize_1.0.0_1674337762224_0.4668424705923475"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-21T21:49:22.424Z","publish_time":1674337762424,"_cnpm_publish_time":1674337762424}},"readme":"# PostCSS Logical Resize [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS Logo\" width=\"90\" height=\"90\" align=\"right\">][PostCSS]\n\n`npm install @csstools/postcss-logical-resize --save-dev`\n\n[PostCSS Logical Resize] lets you use logical, rather than physical, values for `resize`, following the [CSS Logical Properties and Values] specification.\n\n```css\n.resize-block {\n\tresize: block;\n}\n\n.resize-inline {\n\tresize: inline;\n}\n\n/* becomes */\n\n.resize-block {\n\tresize: vertical;\n}\n\n.resize-inline {\n\tresize: horizontal;\n}\n```\n\n## Usage\n\nAdd [PostCSS Logical Resize] to your project:\n\n```bash\nnpm install postcss @csstools/postcss-logical-resize --save-dev\n```\n\nUse it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssLogicalResize = require('@csstools/postcss-logical-resize');\n\npostcss([\n\tpostcssLogicalResize(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n\n\n## Options\n\n### blockDirection & inlineDirection\n\nThe `blockDirection` and `inlineDirection` options allow you to specify the direction of the block and inline axes. The default values are `top-to-bottom` and `left-to-right` respectively, which would match any latin language.\n\n**You should tweak these values so that they are specific to your language and writing mode.**\n\n```js\npostcssLogicalResize({\n\tblockDirection: 'right-to-left',\n\tinlineDirection: 'top-to-bottom'\n})\n```\n\n```css\n.resize-block {\n\tresize: block;\n}\n\n.resize-inline {\n\tresize: inline;\n}\n\n/* becomes */\n\n.resize-block {\n\tresize: horizontal;\n}\n\n.resize-inline {\n\tresize: vertical;\n}\n```\n\nEach direction must be one of the following:\n\n- `top-to-bottom`\n- `bottom-to-top`\n- `left-to-right`\n- `right-to-left`\n\nYou can't mix two vertical directions or two horizontal directions so for example `top-to-bottom` and `right-to-left` are valid, but `top-to-bottom` and `bottom-to-top` are not.\n\n[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test\n[css-url]: https://cssdb.org/#logical-resize\n[discord]: https://discord.gg/bUadyRwkJS\n[npm-url]: https://www.npmjs.com/package/@csstools/postcss-logical-resize\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Logical Resize]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize\n[CSS Logical Properties and Values]: https://www.w3.org/TR/css-logical-1/\n","_attachments":{},"homepage":"https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-resize#readme","bugs":{"url":"https://github.com/csstools/postcss-plugins/issues"},"license":"MIT-0"}