{"_id":"postcss-short-spacing","_rev":"322038","name":"postcss-short-spacing","description":"Use this in CSS","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2021-06-04T01:27:54.000Z","created":"2015-09-21T13:10:35.345Z","4.0.0":"2018-10-09T22:15:17.930Z","3.0.0":"2017-05-25T06:33:05.486Z","2.0.1":"2016-12-14T18:16:33.639Z","2.0.0":"2016-12-06T19:59:04.888Z","1.0.0":"2015-09-21T13:10:35.345Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-spacing.git"},"versions":{"4.0.0":{"name":"postcss-short-spacing","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-spacing.git"},"homepage":"https://github.com/jonathantneal/postcss-short-spacing#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-spacing/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","margin","padding","shorthand","short"],"gitHead":"e6e3181d6d69d95c8733d629e36ef24af46ce7e8","_id":"postcss-short-spacing@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"0de9bf226915c66aca6f4262fb691de817e817f1","size":7878,"noattachment":false,"key":"/postcss-short-spacing/-/postcss-short-spacing-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-spacing/download/postcss-short-spacing-4.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-spacing_4.0.0_1539123317742_0.5694626052132372"},"_hasShrinkwrap":false,"publish_time":1539123317930,"_cnpm_publish_time":1539123317930},"3.0.0":{"name":"postcss-short-spacing","version":"3.0.0","description":"Omit edges within margin and padding 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-spacing.git"},"homepage":"https://github.com/jonathantneal/postcss-short-spacing#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-spacing/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"],"gitHead":"2fa2a845b7456fdd7f30c58550581cae5b95fea3","_id":"postcss-short-spacing@3.0.0","_shasum":"360c5e496fca1250aeeac5988d82e7c409352ca0","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"360c5e496fca1250aeeac5988d82e7c409352ca0","size":5138,"noattachment":false,"key":"/postcss-short-spacing/-/postcss-short-spacing-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-spacing/download/postcss-short-spacing-3.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-spacing-3.0.0.tgz_1495693982895_0.17344335815869272"},"directories":{},"publish_time":1495693985486,"_cnpm_publish_time":1495693985486,"_hasShrinkwrap":false},"2.0.1":{"name":"postcss-short-spacing","version":"2.0.1","description":"Omit edges within margin and padding 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-spacing.git"},"homepage":"https://github.com/jonathantneal/postcss-short-spacing#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-spacing/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"],"gitHead":"748e064a55d3afeaf58404f41def6977e4181340","_id":"postcss-short-spacing@2.0.1","_shasum":"abeb9fc10bb18b6cb0ad027fac85bb30374efe79","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"abeb9fc10bb18b6cb0ad027fac85bb30374efe79","size":6117,"noattachment":false,"key":"/postcss-short-spacing/-/postcss-short-spacing-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-spacing/download/postcss-short-spacing-2.0.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-spacing-2.0.1.tgz_1481739393415_0.6976171743590385"},"directories":{},"publish_time":1481739393639,"_cnpm_publish_time":1481739393639,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-short-spacing","version":"2.0.0","description":"Omit edges within margin and padding 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-spacing.git"},"homepage":"https://github.com/jonathantneal/postcss-short-spacing#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-spacing/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"],"gitHead":"67d52d76939cad310dfc7d2ca6df3e4087670867","_id":"postcss-short-spacing@2.0.0","_shasum":"9981c2858655e00696e65226e572f7ae28e18bdb","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"9981c2858655e00696e65226e572f7ae28e18bdb","size":5971,"noattachment":false,"key":"/postcss-short-spacing/-/postcss-short-spacing-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-spacing/download/postcss-short-spacing-2.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-spacing-2.0.0.tgz_1481054344658_0.7081145131960511"},"directories":{},"publish_time":1481054344888,"_cnpm_publish_time":1481054344888,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-short-spacing","version":"1.0.0","description":"Write shorthand margin and padding properties while omitting edges 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-spacing.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-spacing/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-spacing","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":"b5e1a19c0db460db36d2199770ae52defb95e0da","_id":"postcss-short-spacing@1.0.0","_shasum":"cb19037e61213d0c872b486fdb5c601a4ea9571d","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"cb19037e61213d0c872b486fdb5c601a4ea9571d","size":4515,"noattachment":false,"key":"/postcss-short-spacing/-/postcss-short-spacing-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-spacing/download/postcss-short-spacing-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442841035345,"_cnpm_publish_time":1442841035345,"_hasShrinkwrap":false}},"readme":"# PostCSS Short Spacing [<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 Spacing] lets you omit sides within `margin` and `padding`\nproperties in CSS.\n\n```pcss\nsection {\n  margin: 1em *;\n}\n\n/* becomes */\n\nsection {\n  margin-top: 1em;\n  margin-bottom: 1em;\n}\n```\n\nSupported properties include `margin`, `margin-block`, `margin-inline`,\n`margin-start`, `margin-end`, `padding`, `padding-block`, `padding-inline`,\n`padding-start`, and `padding-end`.\n\n## Usage\n\nAdd [PostCSS Short Spacing] to your project:\n\n```bash\nnpm install postcss-short-spacing --save-dev\n```\n\nUse [PostCSS Short Spacing] to process your CSS:\n\n```js\nconst postcssShortSpacing = require('postcss-short-spacing');\n\npostcssShortSpacing.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssShortSpacing = require('postcss-short-spacing');\n\npostcss([\n  postcssShortSpacing(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Short Spacing] 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\npostcssShortSpacing({ prefix: 'x' });\n```\n\n```pcss\nbody {\n  -x-margin: 1em *;\n}\n\n/* becomes */\n\nsection {\n  margin-top: 1em;\n  margin-bottom: 1em;\n}\n```\n\n#### skip\n\nThe `skip` option defines the skip token used to ignore portions of the\nshorthand.\n\n```js\npostcssShortSpacing({ skip: '-' });\n```\n\n```pcss\nbody {\n  -x-margin: 1em -;\n}\n\n/* becomes */\n\nsection {\n  margin-top: 1em;\n  margin-bottom: 1em;\n}\n```\n\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-short-spacing.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-short-spacing\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-spacing.svg\n[npm-url]: https://www.npmjs.com/package/postcss-short-spacing\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Short Spacing]: https://github.com/jonathantneal/postcss-short-spacing\n","_attachments":{},"homepage":"https://github.com/jonathantneal/postcss-short-spacing#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-spacing/issues"},"license":"CC0-1.0"}