{"_id":"postcss-short-size","_rev":"12-af87d3de4a8ea5777a3e86b704883655","name":"postcss-short-size","description":"Use this in CSS","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"postcss-short-size","version":"1.0.0","description":"Write shorthand size properties in CSS","keywords":["postcss","css","postcss-plugin","omits","shorthands","margins","paddings","properties","property"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-size","dependencies":{"postcss":"^5.0.4"},"devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-eslint":"^1.0.0","gulp-mocha":"^2.1.3"},"scripts":{"test":"gulp"},"engines":{"iojs":">=2.0.0","node":">=0.12.0"},"gitHead":"130258955d6c267425e6365badf03eb76f5d125a","_id":"postcss-short-size@1.0.0","_shasum":"94f7daf89d6ac0d697e8eec35386d92c9882e0e5","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"94f7daf89d6ac0d697e8eec35386d92c9882e0e5","tarball":"https://registry.npmjs.org/postcss-short-size/-/postcss-short-size-1.0.0.tgz","integrity":"sha512-Xp5qGJjQtpFj+0c5ZC5H4N79ZHpJy45uUmvmAFQUANC4Vi5Ebcf9ZbqUwq9hCcILrmw+ZqmTtxzklQUK/NtQ5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMQDXGSbTl8Rs2oirUA7km0nz4qrQ5qvSSknpEY/MfZgIhAMmzq/rdWqp1jCf/jpfwBeMioic6Hkwcb0FYpaKm9S5S"}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{}},"1.1.0":{"name":"postcss-short-size","version":"1.1.0","description":"Write shorthand size properties in CSS","main":"index.js","dependencies":{"postcss":"^5.0.19"},"devDependencies":{"eslint":"^2.3.0","jscs":"^2.11.0","tap-spec":"^4.1.1","tape":"^4.5.0"},"scripts":{"lint":"eslint . && jscs .","tape":"tape test.js | tap-spec","test":"npm run lint && npm run tape"},"engines":{"node":">=0.12.0"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"keywords":["postcss","css","postcss-plugin","omits","shorthands","margins","paddings","properties","property","aspects","ratios"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com","url":"http://jonathantneal.com"},"license":"CC0-1.0","bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","gitHead":"0560f91bd36f50681eb1ab672eb0a5d2f1c48ea5","_id":"postcss-short-size@1.1.0","_shasum":"4a7c9c5bd9b21f5f68457521b0cfaddb9e1727b1","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.4.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"4a7c9c5bd9b21f5f68457521b0cfaddb9e1727b1","tarball":"https://registry.npmjs.org/postcss-short-size/-/postcss-short-size-1.1.0.tgz","integrity":"sha512-0FOWyviSb4GteRf8POdD7jBEekrBrBal1ucyeuBZGwzcbHF3PHEz6G14FSMj4Jev31l6tvl0OVo1ykZ7l9QtkA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYns40Kilx2HJ/1fx6QHA+YD9Ncw/B43078nWUsqaLYAiEAzyCfeph+U3t87GEIPaZLGl7PdCZZ6RiAFsnlL95xt6c="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-size-1.1.0.tgz_1457281883391_0.9183295730035752"},"directories":{}},"2.0.0":{"name":"postcss-short-size","version":"2.0.0","description":"Write shorthand size properties in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"main":"index.js","files":["index.js"],"scripts":{"lint":"echint && eslint index.js && jscs index.js","prepublish":"npm test","tape":"postcss-tape","test":"npm run lint && postcss-tape"},"engines":{"node":">=6.9.1"},"dependencies":{"postcss":"^5.2.6"},"devDependencies":{"echint":"^2.1.0","echint-config-dev":"1.0.0","eslint":"^3.11.1","eslint-config-dev":"1.0.0","jscs":"^3.0.7","jscs-config-dev":"1.0.1","postcss-tape":"1.0.1"},"echint":{"extends":"dev"},"eslintConfig":{"extends":"dev","parserOptions":{"sourceType":"module"}},"jscsConfig":{"preset":"dev"},"keywords":["postcss","css","postcss-plugin","omits","shorthands","margins","paddings","properties","property","aspects","ratios"],"gitHead":"2e2bf292cbe423958ebfd921596b13c426aa3680","_id":"postcss-short-size@2.0.0","_shasum":"0fad41af670bac869cfc9f265cc8248680a35dc8","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"0fad41af670bac869cfc9f265cc8248680a35dc8","tarball":"https://registry.npmjs.org/postcss-short-size/-/postcss-short-size-2.0.0.tgz","integrity":"sha512-EnbNiWvQMxH2z6Ui1qu6D2vNtZPtKikrwaLyGcRgXYnXrr+C8FIdK/KvmLGHdN7Re983VWcEa//N1UBm1frEsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtm9mNg961lpACSey8d+nGcE50rm1xU5449YVcaga7BAIgeMMfAqMr9X5avQLbDiK/w8CXCSCXdoB8zd5+mgIV1Hw="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-short-size-2.0.0.tgz_1481054336215_0.7871696955990046"},"directories":{}},"2.0.1":{"name":"postcss-short-size","version":"2.0.1","description":"Write shorthand size properties in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"main":"index.js","files":["index.js"],"scripts":{"lint":"echint && eslint index.js && jscs index.js","prepublish":"npm test","tape":"postcss-tape","test":"npm run lint && postcss-tape"},"engines":{"node":">=6.9.1"},"dependencies":{"postcss":"^5.2.6"},"devDependencies":{"echint":"^2.1.0","echint-config-dev":"1.0.0","eslint":"^3.12.1","eslint-config-dev":"1.0.0","jscs":"^3.0.7","jscs-config-dev":"1.0.1","postcss-tape":"1.3.0"},"echint":{"extends":"dev"},"eslintConfig":{"extends":"dev","parserOptions":{"sourceType":"module"}},"jscsConfig":{"preset":"dev"},"keywords":["postcss","css","postcss-plugin","omits","shorthands","margins","paddings","properties","property","aspects","ratios"],"gitHead":"00c37e86ade8a9b19810f028612f24e5c27840d4","_id":"postcss-short-size@2.0.1","_shasum":"39b14b6cf7940f88fd128db88bc0a6c2df868ef0","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"39b14b6cf7940f88fd128db88bc0a6c2df868ef0","tarball":"https://registry.npmjs.org/postcss-short-size/-/postcss-short-size-2.0.1.tgz","integrity":"sha512-itA8Q1erS2bEWi/Lh5n7grhq8e9bD2pHcek7f11gC61JYguHMHTVglmC8pZBLAf0QrfKqpFoQMo+q3bT+FXqDg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICAGaOYVcjbHSL3YczOcX8gBrslvyxDlqo3Ox3cQg/XeAiEA7pp7YKE35jO0FPM9lajYo9kMVgNopdyWk010uRTxBrc="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-size-2.0.1.tgz_1481739388331_0.4113900784868747"},"directories":{}},"3.0.0":{"name":"postcss-short-size","version":"3.0.0","description":"Write shorthand size properties in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"main":"index.js","files":["index.js"],"scripts":{"clean":"git clean -X -d -f","prepublish":"npm test","test":"echo 'Running tests...'; npm run test:js && npm run test:tape","test:js":"eslint *.js --cache --ignore-pattern .gitignore","test:tape":"postcss-tape"},"engines":{"node":">=4"},"dependencies":{"postcss":"^6.0.1"},"devDependencies":{"eslint":"^3.19.0","eslint-config-dev":"2.0.0","postcss-tape":"2.0.1","pre-commit":"^1.2.2"},"eslintConfig":{"extends":"dev"},"keywords":["postcss","css","postcss-plugin","omits","shorthands","margins","paddings","properties","property","aspects","ratios"],"gitHead":"788d3a86cce6b9122543d781fd9804c7673eecf8","_id":"postcss-short-size@3.0.0","_shasum":"0905e11c7c14d42551260407894f57466c102fbc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"0905e11c7c14d42551260407894f57466c102fbc","tarball":"https://registry.npmjs.org/postcss-short-size/-/postcss-short-size-3.0.0.tgz","integrity":"sha512-Jw7Z+eA6KfY+ayk18vuL3zqjOghV+egr0qShasVYWA04U4JiKoHJQUjsCUi8DSVF+7hYgkAJqJWIUsAEjWpd0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYZ0ed7skVMbDKo2PFpsEPU3kG77igwPuLFt+4hAwK7QIgLJ9RJXGOacu2hDrw6CPKxEkrD5KaAVXg08yWsrr/dXU="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-size-3.0.0.tgz_1495693991038_0.9668389514554292"},"directories":{}},"4.0.0":{"name":"postcss-short-size","version":"4.0.0","description":"Use this in CSS","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"main":"index.cjs.js","module":"index.es.mjs","scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"echo 'Running tests...'; npm run test:js && npm run test:tape","test:js":"eslint *.js --cache --ignore-path .gitignore --quiet","test:tape":"postcss-tape"},"engines":{"node":">=6.0.0"},"dependencies":{"postcss":"^7.0.5"},"devDependencies":{"@babel/core":"^7.1.2","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/preset-env":"^7.1.0","babel-eslint":"^10.0.1","eslint":"^5.6.1","eslint-config-dev":"^2.0.0","postcss-tape":"^2.2.0","pre-commit":"^1.2.2","rollup":"^0.66.5","rollup-plugin-babel":"^4.0.3"},"eslintConfig":{"extends":"dev","parser":"babel-eslint"},"keywords":["postcss","css","postcss-plugin","size","short","shorthand","width","height"],"gitHead":"40a6f47286d53c70535522f32faa2d3339437a79","_id":"postcss-short-size@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"integrity":"sha512-/RRw2JFj+7xmX+GO5HIp9+sVNZTm+bXWKwHlxxXcxEJDPng/dNeWGXIdExbuknqgDeDX/lv5YfgjD2g5TUtUtA==","shasum":"66da8f2d816b2a7334abcc951f67fb12d394b219","tarball":"https://registry.npmjs.org/postcss-short-size/-/postcss-short-size-4.0.0.tgz","fileCount":8,"unpackedSize":25089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbvXDRCRA9TVsSAnZWagAAcpYP/1L+wxJTs7T/vKuaKN3b\nHA9XsL7uLi8pbTeVqungMwxglbFLLdp7+4iSy7sA7uqxrHYzaQltvCwLxjby\nlH8QYDpeYYHE4y0ElX+D4m+NDEkKTdNOPjSQrFv81u732OikpqpJRQSjziUW\ntVWw1tFhnywsi81mrKpwtavi387Fd7E2UA6Atg7sgtS8yEtdHdt0M+fhu1du\njbNNEfT6jicXFomDC797Di7+6UK0evaX2pr5ivWCx5HHJGrG5wZmg0BoLeMd\nmiMcDWc5oXOR+wOv8aXRgtS3clfdu1nFLtfxvB1uNAzJAYZ1Ya21um2faqwx\ncZ/TAIIN+ofuGonVtE1xlZgI2xZkoY1ojQiD6SY2yXUZicMeoA8A2FX6P9V6\nfuvybPbhXsQFni5Oifhv2A6o1DhfcfmvziZCVHzOqx9jGNXTbB+GIinGdzgd\nO4oWubx6V7e1HslA3zohvyXk1K5XCisf4TUWpPfM/sNBI9M4V8XqAsKeFmFq\nVoJCj3r0ozRdv+LSqT9UFrQpyt9H2y4f1OUJA0JlyBiUrvC/RjOIKu5+UFnd\nDJQdBRaP+MclvyxOyYOE/9rkfBl6cohAE9E/Vxk5Bc/md3G/ye8+DEZTHxNe\nCRpgRR1fAv7u+G7J44Flyva7AJIkyMokIn0tzNlm+TsiUm4i8xrCC0QLGgQX\nur9b\r\n=xTC4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkEht2FIHlfoOuaFOodrnYhphiR31CaQBknWpNUe3gcAiBSLXJFJq0ACI1KzCJLA0g3IWT89TeDGGmJLG6FOmxJAQ=="}]},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-size_4.0.0_1539141840071_0.9648842815321195"},"_hasShrinkwrap":false}},"readme":"# PostCSS Short Size [<img src=\"https://postcss.github.io/postcss/logo.svg\" alt=\"PostCSS\" width=\"90\" height=\"90\" align=\"right\">][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 Size] lets you use `size` properties to represent `width` and\n`height` in CSS, following the [1-to-2 syntax].\n\n```pcss\n.image {\n  size: 100px;\n}\n\n.video {\n  max-size: 400px 300px;\n}\n\n/* becomes */\n\n.image {\n  width: 100px;\n  height: 100px;\n}\n\n.video {\n  max-width: 400px;\n  max-height: 300px;\n}\n```\n\nThe supported properties are `size`, `min-size`, and `max-size`.\n\n## Usage\n\nAdd [PostCSS Short Size] to your project:\n\n```bash\nnpm install postcss-short-size --save-dev\n```\n\nUse [PostCSS Short Size] to process your CSS:\n\n```js\nconst postcssShortSize = require('postcss-short-size');\n\npostcssShortSize.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssShortSize = require('postcss-short-size');\n\npostcss([\n  postcssShortSize(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Short Size] 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-margin`.\n\n```js\npostcssShortSize({ prefix: 'x' });\n```\n\n```pcss\n.image {\n  x-size: 100px;\n}\n\n/* becomes */\n\n.image {\n  width: 100px;\n  height: 100px;\n}\n```\n\n#### skip\n\nThe `skip` option defines the skip token used to ignore portions of the\nshorthand.\n\n```js\npostcssShortSize({ skip: '-' });\n```\n\n```pcss\n.image {\n  size: - 100px;\n}\n\n/* becomes */\n\n.image {\n  height: 100px;\n}\n```\n\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-short-size.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-short-size\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-size.svg\n[npm-url]: https://www.npmjs.com/package/postcss-short-size\n\n[1-to-2 syntax]: https://developer.mozilla.org/en-US/docs/Web/CSS/Shorthand_properties#Tricky_edge_cases\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Short Size]: https://github.com/jonathantneal/postcss-short-size\n","maintainers":[{"email":"romainmenke@gmail.com","name":"romainmenke"},{"email":"sombragriselros@gmail.com","name":"alaguna"},{"email":"jonathantneal@hotmail.com","name":"jonathantneal"}],"time":{"modified":"2024-02-19T21:21:00.866Z","created":"2015-09-21T13:10:00.491Z","1.0.0":"2015-09-21T13:10:00.491Z","1.1.0":"2016-03-06T16:31:26.492Z","2.0.0":"2016-12-06T19:58:58.254Z","2.0.1":"2016-12-14T18:16:28.567Z","3.0.0":"2017-05-25T06:33:11.940Z","4.0.0":"2018-10-10T03:24:00.290Z"},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","keywords":["postcss","css","postcss-plugin","size","short","shorthand","width","height"],"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"license":"CC0-1.0","readmeFilename":"README.md"}