{"_id":"postcss-short-border","_rev":"322501","name":"postcss-short-border","description":"Define multiple edges, styles, and colors inside the border property in CSS","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"time":{"modified":"2021-06-04T01:28:53.000Z","created":"2015-10-01T02:56:26.223Z","4.0.0":"2018-10-10T12:36:02.413Z","3.0.0":"2017-05-25T06:34:56.305Z","2.0.1":"2016-12-14T18:16:07.324Z","2.0.0":"2016-12-06T19:58:29.731Z","1.0.0":"2015-10-01T02:56:26.223Z"},"users":{},"author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"repository":{"type":"git","url":"git+https://github.com/jonathantneal/postcss-short-border.git"},"versions":{"4.0.0":{"name":"postcss-short-border","version":"4.0.0","description":"Define multiple edges, styles, and colors inside the border 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-border.git"},"homepage":"https://github.com/jonathantneal/postcss-short-border#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-border/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","border","shorthand","short"],"gitHead":"a8cdf72328c79be842db30bd6d009e7a8ded00c5","_id":"postcss-short-border@4.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.11.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"c7ffa685d4e2b350fbb7c3571a1cc47302e9efd6","size":7099,"noattachment":false,"key":"/postcss-short-border/-/postcss-short-border-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-border/download/postcss-short-border-4.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-border_4.0.0_1539174962261_0.20239187500025313"},"_hasShrinkwrap":false,"publish_time":1539174962413,"_cnpm_publish_time":1539174962413},"3.0.0":{"name":"postcss-short-border","version":"3.0.0","description":"Define multiple edges, styles, and colors inside the border 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-border.git"},"homepage":"https://github.com/jonathantneal/postcss-short-border#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-border/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":"350513d4eb1e81214596ae80ae43125e2f7fb797","_id":"postcss-short-border@3.0.0","_shasum":"e56379c4a2f5327d81db61acd42bc6025dfcb9d9","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"e56379c4a2f5327d81db61acd42bc6025dfcb9d9","size":5524,"noattachment":false,"key":"/postcss-short-border/-/postcss-short-border-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-border/download/postcss-short-border-3.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/postcss-short-border-3.0.0.tgz_1495694095386_0.4398964154534042"},"directories":{},"publish_time":1495694096305,"_cnpm_publish_time":1495694096305,"_hasShrinkwrap":false},"2.0.1":{"name":"postcss-short-border","version":"2.0.1","description":"Define multiple edges, styles, and colors inside the border 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-border.git"},"homepage":"https://github.com/jonathantneal/postcss-short-border#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-border/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","postcss-value-parser":"^3.3.0"},"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":"56138a384ec742ec9b7ef3ff8a8b074f3d3e001d","_id":"postcss-short-border@2.0.1","_shasum":"17f716c1357b60cd302fdc2cc9031b0a9424e7a7","_from":".","_npmVersion":"4.0.3","_nodeVersion":"7.2.1","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"17f716c1357b60cd302fdc2cc9031b0a9424e7a7","size":6587,"noattachment":false,"key":"/postcss-short-border/-/postcss-short-border-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-border/download/postcss-short-border-2.0.1.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-border-2.0.1.tgz_1481739366896_0.4235244099982083"},"directories":{},"publish_time":1481739367324,"_cnpm_publish_time":1481739367324,"_hasShrinkwrap":false},"2.0.0":{"name":"postcss-short-border","version":"2.0.0","description":"Define multiple edges, styles, and colors inside the border 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-border.git"},"homepage":"https://github.com/jonathantneal/postcss-short-border#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-border/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","postcss-value-parser":"^3.3.0"},"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":"68befe85c7c7432caf6cc0d44c85a9c1c0358623","_id":"postcss-short-border@2.0.0","_shasum":"7b72dcc5da42ac9d9a26079686d50a3b9cf563b4","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.2.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"7b72dcc5da42ac9d9a26079686d50a3b9cf563b4","size":6483,"noattachment":false,"key":"/postcss-short-border/-/postcss-short-border-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-border/download/postcss-short-border-2.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-short-border-2.0.0.tgz_1481054309509_0.685688991798088"},"directories":{},"publish_time":1481054309731,"_cnpm_publish_time":1481054309731,"_hasShrinkwrap":false},"1.0.0":{"name":"postcss-short-border","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-border.git"},"bugs":{"url":"https://github.com/jonathantneal/postcss-short-border/issues"},"homepage":"https://github.com/jonathantneal/postcss-short-border","dependencies":{"postcss":"^5.0.8"},"devDependencies":{"chai":"^3.3.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":"cc1dc3b28c05f9423b89f80660d3a223a1059d09","_id":"postcss-short-border@1.0.0","_shasum":"7519868e9863ccd69ad5af4b986e1d99f1f5bee4","_from":".","_npmVersion":"2.14.3","_nodeVersion":"0.12.5","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"shasum":"7519868e9863ccd69ad5af4b986e1d99f1f5bee4","size":5961,"noattachment":false,"key":"/postcss-short-border/-/postcss-short-border-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/postcss-short-border/download/postcss-short-border-1.0.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"directories":{},"publish_time":1443668186223,"_cnpm_publish_time":1443668186223,"_hasShrinkwrap":false}},"readme":"# PostCSS Short Border [<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 Border] lets you omit sides within `border-` properties in CSS.\nIt also lets you fully define individual values on the `border` property using\ndividers (`/`).\n\n```pcss\n.example-1 {\n  border-color: blue blue *;\n}\n\n.example-2 {\n  border-width: 1px *;\n}\n\n.example-3 {\n  border: 1px 2px / solid / red orange;\n}\n\n/* becomes */\n\n.example-1 {\n  border-top-color: blue;\n  border-right-color: blue;\n  border-left-color: blue;\n}\n\n.example-2 {\n  border-top-width: 1px;\n  border-bottom-width: 1px;\n}\n\n.example-3 {\n  border-width: 1px 2px;\n  border-style: solid;\n  border-color: red orange;\n}\n```\n\n## Usage\n\nAdd [PostCSS Short Border] to your project:\n\n```bash\nnpm install postcss-short-border --save-dev\n```\n\nUse [PostCSS Short Border] to process your CSS:\n\n```js\nconst postcssShortBorder = require('postcss-short-border');\n\npostcssShortBorder.process(YOUR_CSS /*, processOptions, pluginOptions */);\n```\n\nOr use it as a [PostCSS] plugin:\n\n```js\nconst postcss = require('postcss');\nconst postcssShortBorder = require('postcss-short-border');\n\npostcss([\n  postcssShortBorder(/* pluginOptions */)\n]).process(YOUR_CSS /*, processOptions */);\n```\n\n[PostCSS Short Border] 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-border`.\n\n```js\npostcssShortBorder({ prefix: 'x' });\n```\n\n```pcss\n.example-1 {\n  -x-border-color: blue blue *;\n}\n\n/* becomes */\n\n.example-1 {\n  border-top-color: blue;\n  border-right-color: blue;\n  border-left-color: blue;\n}\n```\n\n#### skip\n\nThe `skip` option defines the skip token used to ignore portions of the\nshorthand.\n\n```js\npostcssShortBorder({ skip: '-' });\n```\n\n```pcss\n.example-1 {\n  border-color: blue blue -;\n}\n\n/* becomes */\n\n.example-1 {\n  border-top-color: blue;\n  border-right-color: blue;\n  border-left-color: blue;\n}\n```\n\n[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-short-border.svg\n[cli-url]: https://travis-ci.org/jonathantneal/postcss-short-border\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-border.svg\n[npm-url]: https://www.npmjs.com/package/postcss-short-border\n\n[PostCSS]: https://github.com/postcss/postcss\n[PostCSS Short Border]: https://github.com/jonathantneal/postcss-short-border\n","_attachments":{},"homepage":"https://github.com/jonathantneal/postcss-short-border#readme","bugs":{"url":"https://github.com/jonathantneal/postcss-short-border/issues"},"license":"CC0-1.0"}