{"_id":"postcss-short-size","_rev":"322029","name":"postcss-short-size","description":"Use this in CSS","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2021-06-04T01:27:53.000Z","created":"2015-09-21T13:10:00.491Z","4.0.0":"2018-10-10T03:24:00.290Z","3.0.0":"2017-05-25T06:33:11.940Z","2.0.1":"2016-12-14T18:16:28.567Z","2.0.0":"2016-12-06T19:58:58.254Z","1.1.0":"2016-03-06T16:31:26.492Z","1.0.0":"2015-09-21T13:10:00.491Z"},"users":{"danielbayley":true},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-size.git"},"versions":{"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":{"shasum":"66da8f2d816b2a7334abcc951f67fb12d394b219","size":6807,"noattachment":false,"key":"/postcss-short-size/-/postcss-short-size-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-size/download/postcss-short-size-4.0.0.tgz"},"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,"publish_time":1539141840290,"_cnpm_publish_time":1539141840290},"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","size":5475,"noattachment":false,"key":"/postcss-short-size/-/postcss-short-size-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-size/download/postcss-short-size-3.0.0.tgz"},"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":{},"publish_time":1495693991940,"_hasShrinkwrap":false,"_cnpm_publish_time":1495693991940},"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","size":6462,"noattachment":false,"key":"/postcss-short-size/-/postcss-short-size-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-size/download/postcss-short-size-2.0.1.tgz"},"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":{},"publish_time":1481739388567,"_cnpm_publish_time":1481739388567,"_hasShrinkwrap":false},"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","size":6348,"noattachment":false,"key":"/postcss-short-size/-/postcss-short-size-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-size/download/postcss-short-size-2.0.0.tgz"},"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":{},"publish_time":1481054338254,"_cnpm_publish_time":1481054338254,"_hasShrinkwrap":false},"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","size":6537,"noattachment":false,"key":"/postcss-short-size/-/postcss-short-size-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-size/download/postcss-short-size-1.1.0.tgz"},"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":{},"publish_time":1457281886492,"_cnpm_publish_time":1457281886492,"_hasShrinkwrap":false},"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","size":4415,"noattachment":false,"key":"/postcss-short-size/-/postcss-short-size-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-size/download/postcss-short-size-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442841000491,"_cnpm_publish_time":1442841000491,"_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","_attachments":{},"homepage":"https://github.com/jonathantneal/postcss-short-size#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-size/issues"},"license":"CC0-1.0"}