{"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","tarball":"http://registry-npm.ywwl.com/postcss-short-spacing/download/postcss-short-spacing-1.0.0.tgz","integrity":"sha512-RbfmfHz8tMB4T3bPXeOXt7lEgEEUiarjhK4Di428abxwTEkYpCkxChlinrPbFNCwPQVGsWeGfQnSw5zvempsWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGvJJHj8l3SZ6R2wX8X028xTaHDNme14t5RjWjz9uJN7AiAcp42FxNejqjotYptNAFpaQG9K9RwdtYS0XSZjAFZahw=="}],"size":4515,"noattachment":false,"key":"/postcss-short-spacing/-/postcss-short-spacing-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"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","publish_time":1442841035345,"_cnpm_publish_time":1442841035345,"dist-tags":{"latest":"4.0.0"}}