{"id":19652991,"url":"https://github.com/csstools/postcss-short-overflow","last_synced_at":"2025-04-28T17:31:07.318Z","repository":{"id":57153071,"uuid":"152261958","full_name":"csstools/postcss-short-overflow","owner":"csstools","description":"Write overflow-x and overflow-y with the overflow shorthand in CSS","archived":false,"fork":false,"pushed_at":"2018-10-10T12:14:41.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-22T18:31:21.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csstools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-09T14:06:41.000Z","updated_at":"2023-04-02T05:42:15.000Z","dependencies_parsed_at":"2022-09-07T00:41:29.613Z","dependency_job_id":null,"html_url":"https://github.com/csstools/postcss-short-overflow","commit_stats":null,"previous_names":["jonathantneal/postcss-short-overflow"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-overflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-overflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-overflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csstools%2Fpostcss-short-overflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csstools","download_url":"https://codeload.github.com/csstools/postcss-short-overflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223894613,"owners_count":17221096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T15:12:51.292Z","updated_at":"2024-11-11T15:12:52.071Z","avatar_url":"https://github.com/csstools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PostCSS Short Overflow [\u003cimg src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\"\u003e][postcss]\n\n[![NPM Version][npm-img]][npm-url]\n[![Build Status][cli-img]][cli-url]\n[![Support Chat][git-img]][git-url]\n\n[PostCSS Short Overflow] lets you write `overflow-x` and `overflow-y` with the\n`overflow` shorthand in CSS.\n\n```pcss\nhtml {\n  overflow: hidden auto;\n}\n\n[contenteditable] {\n  overflow: * auto;\n}\n\n/* becomes */\n\nhtml {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n\n[contenteditable] {\n  overflow-y: auto;\n}\n```\n\n## Usage\n\nAdd [PostCSS Short Overflow] to your project:\n\n```bash\nnpm install postcss-short-overflow --save-dev\n```\n\nUse [PostCSS Short Overflow] to process your CSS:\n\n```js\nconst postcssShortOverflow = require('postcss-short-overflow');\n\npostcssShortOverflow.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssShortOverflow = require('postcss-short-overflow');\n\npostcss([\n  postcssShortOverflow(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Short Overflow] runs in all Node environments, with special instructions for:\n\n| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Create React App](INSTALL.md#create-react-app) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) |\n| --- | --- | --- | --- | --- | --- |\n\n## Options\n\n#### prefix\n\nThe `prefix` option defines a prefix required by properties being transformed.\nWrapping dashes are automatically applied, so that `x` would transform\n`-x-overflow`.\n\n```js\npostcssShortOverflow({ prefix: 'x' });\n```\n\n```pcss\nhtml {\n  -x-overflow: hidden auto;\n}\n\n/* becomes */\n\nhtml {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n```\n\n#### skip\n\nThe `skip` option defines the skip token used to ignore portions of the\nshorthand.\n\n```js\npostcssShortOverflow({ skip: '-' });\n```\n\n```pcss\n[contenteditable] {\n  overflow: - auto;\n}\n\n/* becomes */\n\n[contenteditable] {\n  overflow-y: auto;\n}\n```\n\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-short-overflow.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-short-overflow\n[git-img]: https://img.shields.io/badge/support-chat-blue.svg\n[git-url]: https://gitter.im/postcss/postcss\n[npm-img]: https://img.shields.io/npm/v/postcss-short-overflow.svg\n[npm-url]: https://www.npmjs.com/package/postcss-short-overflow\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Short Overflow]: https://github.com/jonathantneal/postcss-short-overflow\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-short-overflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsstools%2Fpostcss-short-overflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsstools%2Fpostcss-short-overflow/lists"}