{"_id":"postcss-short-position","_rev":"322015","name":"postcss-short-position","description":"Define sides within the position property in CSS","dist-tags":{"latest":"4.0.1"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2021-06-04T01:27:52.000Z","created":"2015-09-21T13:09:30.487Z","4.0.1":"2018-10-10T11:52:58.181Z","4.0.0":"2018-10-10T03:40:55.908Z","3.0.0":"2017-05-25T06:33:18.357Z","2.0.1":"2016-12-14T18:16:23.649Z","2.0.0":"2016-12-06T19:58:50.270Z","1.0.0":"2015-09-21T13:09:30.487Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-position.git"},"versions":{"4.0.1":{"name":"postcss-short-position","version":"4.0.1","description":"Define sides within the position property 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-position.git"},"homepage":"https://github.com/jonathantneal/postcss-short-position#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/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","position","top","right","bottom","left","inset","shorthand","short"],"gitHead":"ed6ba898e2a95f7855b0f546009586af3313af6a","_id":"postcss-short-position@4.0.1","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"b5e628c081180bca43545142bacb54367f3b202a","size":7377,"noattachment":false,"key":"/postcss-short-position/-/postcss-short-position-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-position/download/postcss-short-position-4.0.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-position_4.0.1_1539172377970_0.007807379905295342"},"_hasShrinkwrap":false,"publish_time":1539172378181,"_cnpm_publish_time":1539172378181},"4.0.0":{"name":"postcss-short-position","version":"4.0.0","description":"Define sides within the position property 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-position.git"},"homepage":"https://github.com/jonathantneal/postcss-short-position#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/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","position","top","right","bottom","left","inset","shorthand","short"],"gitHead":"b7649764fb1900e13e14f554553152151cad01b6","_id":"postcss-short-position@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"f4900f1abf5e20d5df66e188cdd1c1a617225130","size":6925,"noattachment":false,"key":"/postcss-short-position/-/postcss-short-position-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-position/download/postcss-short-position-4.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-position_4.0.0_1539142855787_0.09391306374407349"},"_hasShrinkwrap":false,"publish_time":1539142855908,"_cnpm_publish_time":1539142855908},"3.0.0":{"name":"postcss-short-position","version":"3.0.0","description":"Define sides within the position property 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-position.git"},"homepage":"https://github.com/jonathantneal/postcss-short-position#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/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","shorthands","declarations","property","properties","values","positions","tops","rights","bottoms","lefts","lengths"],"gitHead":"4b5e31d68e8df0113653fd9eaf3687fdf3de21b1","_id":"postcss-short-position@3.0.0","_shasum":"1874105a4c8c768fe57bbb8ab5f048a5431293d4","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"1874105a4c8c768fe57bbb8ab5f048a5431293d4","size":5431,"noattachment":false,"key":"/postcss-short-position/-/postcss-short-position-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-position/download/postcss-short-position-3.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-position-3.0.0.tgz_1495693997442_0.9317602240480483"},"directories":{},"publish_time":1495693998357,"_hasShrinkwrap":false,"_cnpm_publish_time":1495693998357},"2.0.1":{"name":"postcss-short-position","version":"2.0.1","description":"Define sides within the position property 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-position.git"},"homepage":"https://github.com/jonathantneal/postcss-short-position#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/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","shorthands","declarations","property","properties","values","positions","tops","rights","bottoms","lefts","lengths"],"gitHead":"43e48872f313c599431d2856b3ce8a5d806edbf9","_id":"postcss-short-position@2.0.1","_shasum":"eeb90bd4270a167a2f3f74396bd6337652427b1b","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"eeb90bd4270a167a2f3f74396bd6337652427b1b","size":6439,"noattachment":false,"key":"/postcss-short-position/-/postcss-short-position-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-position/download/postcss-short-position-2.0.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-position-2.0.1.tgz_1481739383406_0.41064517199993134"},"directories":{},"publish_time":1481739383649,"_cnpm_publish_time":1481739383649,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-short-position","version":"2.0.0","description":"Define sides within the position property 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-position.git"},"homepage":"https://github.com/jonathantneal/postcss-short-position#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/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","shorthands","declarations","property","properties","values","positions","tops","rights","bottoms","lefts","lengths"],"gitHead":"f94aa6b55c3f76eb4a2bb06eab325decb989c617","_id":"postcss-short-position@2.0.0","_shasum":"65dff0bd8e45498cafba1a152028e318a83a5743","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"65dff0bd8e45498cafba1a152028e318a83a5743","size":6344,"noattachment":false,"key":"/postcss-short-position/-/postcss-short-position-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-position/download/postcss-short-position-2.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/postcss-short-position-2.0.0.tgz_1481054328261_0.4389063960406929"},"directories":{},"publish_time":1481054330270,"_cnpm_publish_time":1481054330270,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-short-position","version":"1.0.0","description":"Define edges inside the position property in CSS","keywords":["postcss","css","postcss-plugin","shorthands","declarations","property","properties","values","positions","tops","rights","bottoms","lefts","lengths"],"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-position.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-position","dependencies":{"postcss":"^5.0.5"},"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":"eb3bcd8819a8264b4eb96dfee06a8b6862303b43","_id":"postcss-short-position@1.0.0","_shasum":"32bf54df3597ed56fe4e1bab216d4759cb2f75de","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"32bf54df3597ed56fe4e1bab216d4759cb2f75de","size":4599,"noattachment":false,"key":"/postcss-short-position/-/postcss-short-position-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-position/download/postcss-short-position-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1442840970487,"_cnpm_publish_time":1442840970487,"_hasShrinkwrap":false}},"readme":"# PostCSS Short Position [<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 Position] lets define sides within the `position` property in\nCSS.\n\n```pcss\n.header {\n  position: fixed 0 1em *;\n}\n\n/* becomes */\n\n.header {\n  top: 0;\n  right: 1em;\n  left: 1em;\n  position: fixed;\n}\n```\n\nThe `position` declaration can be extended with the [1-to-4 syntax] to target\n`top`, `right`, `bottom`, and `left`. Sides can be omitted using the skip token.\n\n## Usage\n\nAdd [PostCSS Short Position] to your project:\n\n```bash\nnpm install postcss-short-position --save-dev\n```\n\nUse [PostCSS Short Position] to process your CSS:\n\n```js\nconst postcssShortPosition = require('postcss-short-position');\n\npostcssShortPosition.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssShortPosition = require('postcss-short-position');\n\npostcss([\n  postcssShortPosition(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Short Position] 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[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-short-position.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-short-position\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-position.svg\n[npm-url]: https://www.npmjs.com/package/postcss-short-position\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-position`.\n\n```js\npostcssShortPosition({ prefix: 'x' });\n```\n\n```pcss\n.header {\n  x-position: fixed 0 1em *;\n}\n\n/* becomes */\n\n.header {\n  top: 0;\n  right: 1em;\n  left: 1em;\n  position: fixed;\n}\n```\n\n#### skip\n\nThe `skip` option defines the skip token used to ignore portions of the\nshorthand.\n\n```js\npostcssShortPosition({ skip: '-' });\n```\n\n```pcss\n.header {\n  position: fixed 0 1em -;\n}\n\n/* becomes */\n\n.header {\n  top: 0;\n  right: 1em;\n  left: 1em;\n  position: fixed;\n}\n```\n\n[1-to-4 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 Position]: https://github.com/jonathantneal/postcss-short-position\n","_attachments":{},"homepage":"https://github.com/jonathantneal/postcss-short-position#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-position/issues"},"license":"CC0-1.0"}