{"_id":"css-shorthand-properties","_rev":"10-fb76f9d9cb314ce0a072571474482d3a","name":"css-shorthand-properties","dist-tags":{"latest":"1.1.2"},"versions":{"0.1.0":{"name":"css-shorthand-properties","version":"0.1.0","keywords":["css","shorthand","short","list"],"author":{"name":"Gilmore Davidson"},"_id":"css-shorthand-properties@0.1.0","maintainers":[{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"}],"homepage":"https://github.com/gilmoreorless/css-shorthand-properties","bugs":{"url":"https://github.com/gilmoreorless/css-shorthand-properties/issues"},"dist":{"shasum":"dd3ab16c9de0f61bcac3917b2b14863316d9af70","tarball":"https://registry.npmjs.org/css-shorthand-properties/-/css-shorthand-properties-0.1.0.tgz","integrity":"sha512-nbm2U8KfypbS5QuDIsFKb8SeYazMuv/2Mpb5L4YJQD37G3phRUrk37rleW+6c0UsejjXe65KtifUZGcdDWTuCw==","signatures":[{"sig":"MEUCICrJDh1uZMbvWKWuL4b6UJ2xUcYJvd4E4iQl+gnlrBIiAiEAs1YOJkLovSeJZdrVu07YdqAlhP2As3hq/mGS90W44fo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"dd3ab16c9de0f61bcac3917b2b14863316d9af70","gitHead":"ca1bd9f40c4b9d945cb4f6a1cfe2e4da7a432e76","scripts":{},"_npmUser":{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"},"licenses":[{"url":"http://gilmoreorless.mit-license.org/","type":"MIT"}],"repository":{"url":"git://github.com/gilmoreorless/css-shorthand-properties.git","type":"git"},"_npmVersion":"2.0.0-beta.2","description":"A simple list of CSS shorthand properties and which longhand properties they expand to","directories":{}},"1.0.0":{"name":"css-shorthand-properties","version":"1.0.0","keywords":["css","shorthand","short","list"],"author":{"name":"Gilmore Davidson"},"_id":"css-shorthand-properties@1.0.0","maintainers":[{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"}],"homepage":"https://github.com/gilmoreorless/css-shorthand-properties","bugs":{"url":"https://github.com/gilmoreorless/css-shorthand-properties/issues"},"dist":{"shasum":"567be671103679b9aa05a48155e51474b275877f","tarball":"https://registry.npmjs.org/css-shorthand-properties/-/css-shorthand-properties-1.0.0.tgz","integrity":"sha512-bvR3vTsoXuOr78uFwSSbnl9uLoORAJHxr2ZhYPJebGMyYsbshvmxtq++fQjuJgoI/MTJ6/v7Ojj0O4TSL8V7Zw==","signatures":[{"sig":"MEYCIQCjmq+ytOVfxL5xHtxdlIc/A/kJeyYmzs2W+DRX8VCs6QIhAJz6QEuK6FwLEQWcs2mFPOfgvIsVzWN7q1vsR7O62jWF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"567be671103679b9aa05a48155e51474b275877f","gitHead":"4f8f66852ff44d450515e36b85581b29dd48bea1","scripts":{},"_npmUser":{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"},"licenses":[{"url":"http://gilmoreorless.mit-license.org/","type":"MIT"}],"repository":{"url":"git://github.com/gilmoreorless/css-shorthand-properties.git","type":"git"},"_npmVersion":"2.1.8","description":"A simple list of CSS shorthand properties and which longhand properties they expand to","directories":{},"_nodeVersion":"0.10.33"},"1.1.0":{"name":"css-shorthand-properties","version":"1.1.0","keywords":["css","shorthand","short","list"],"author":{"name":"Gilmore Davidson"},"_id":"css-shorthand-properties@1.1.0","maintainers":[{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"}],"homepage":"https://github.com/gilmoreorless/css-shorthand-properties","bugs":{"url":"https://github.com/gilmoreorless/css-shorthand-properties/issues"},"dist":{"shasum":"e40a11e17f003cc1a9a772b19865508323659fff","tarball":"https://registry.npmjs.org/css-shorthand-properties/-/css-shorthand-properties-1.1.0.tgz","integrity":"sha512-0Pg/e2U0NgT6Chw1TUe3D2ZTOOO3JFzlDV+bN3hxR8T0RDjnwzmx5WhuYUA0GHYWlPYAYi2/Ac0e8oqgerHDQw==","signatures":[{"sig":"MEYCIQCNvNjKhf2A8Awacx4Xfq/FX1N2nHMJkfEdrvz5G5D1+gIhAKeEb3ixWDKYS9qHGmqLRH3fa7kS5ugBlY+xA4tqsKGs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"95e2a3bf99bfdde51b4caadb3c5ba3bf2e24445e","_npmUser":{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"},"licenses":[{"url":"http://gilmoreorless.mit-license.org/","type":"MIT"}],"repository":{"url":"git://github.com/gilmoreorless/css-shorthand-properties.git","type":"git"},"_npmVersion":"5.5.1","description":"A simple list of CSS shorthand properties and which longhand properties they expand to","directories":{},"_nodeVersion":"8.1.4","_npmOperationalInternal":{"tmp":"tmp/css-shorthand-properties-1.1.0.tgz_1510399928106_0.514916957821697","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"css-shorthand-properties","version":"1.1.1","keywords":["css","shorthand","short","list"],"author":{"name":"Gilmore Davidson"},"_id":"css-shorthand-properties@1.1.1","maintainers":[{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"}],"homepage":"https://github.com/gilmoreorless/css-shorthand-properties","bugs":{"url":"https://github.com/gilmoreorless/css-shorthand-properties/issues"},"dist":{"shasum":"1c808e63553c283f289f2dd56fcee8f3337bd935","tarball":"https://registry.npmjs.org/css-shorthand-properties/-/css-shorthand-properties-1.1.1.tgz","fileCount":5,"integrity":"sha512-Md+Juc7M3uOdbAFwOYlTrccIZ7oCFuzrhKYQjdeUEW/sE1hv17Jp/Bws+ReOPpGVBTYCBoYo+G17V5Qo8QQ75A==","signatures":[{"sig":"MEQCIFrxOL6ef+OmG+1Uf2nxhlCHtt9GSjYqTm5wMUFM+MbOAiAb9kMVk++CoOXCOYsNNE84mSNxNBZojDOwpZz9bTkhvQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11182,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbTUKHCRA9TVsSAnZWagAAzB0P/1nhkSv7izDOdey0vu4w\n2A2aYsMz80V82qA/0hzsxmC9/5tM5YvtLZLMvFVDmovJir2EP94AJmmMN98X\nQsikVqs6IMw5kIZpE3vxGJddd+2e0axjH6Y0bS76nHZdHCDNwdSMp1BhQoqD\n6ZxR5HxUmb43toj2k6/h5/jmHJrISzR8REjxfw6DDcN3QYkh6CA3gtjuGptb\nZitT5/MhNt7wfzcGiwcuPYroPZypdNDgeAFZxFFSImPgimsPrI87hF8IqthF\nQFxbht7vdbocg2kkEGBbfSqyyXdQtQD5nqEOStsWRS4aNpUkMubtr+5zK4fn\nhoipUZt+ebhJAY6uyG5HgZUfl0C9hUr+jZ6Bf6H8/DAd8myD3twCn71RPi3U\ntoJtCCHGIUIYE4xvyh2u/nf8dZbPSsY4E1jhXtz2+7vNnlHtM/bjpTP+AIMk\nOJISTK0DolsNPBOA8c5aud9P5ogxFZLKRb/FpfN6uLz3nh23UcvLfliqay+x\nvebVuqObiIyTphoMOr7hu0ZYjR/EbM1GZKwXGlmtTRa1q3RqpDcp+d3QxT6M\nO+8fPPEZGXUrsS1TF+PrSAKBt6SqFkHhgWiF4pUglKUSLe19IwuWRVBRAdvo\nMy8oC1X+N6oVO6+ot0UoApLTAfys/kZ8KSfE06DBUYq93536SCqo78gHsr23\nzI87\r\n=pxsm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"2dc6a7ce94383ba00707445becd9f21418d2d369","_npmUser":{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"},"licenses":[{"url":"http://gilmoreorless.mit-license.org/","type":"MIT"}],"repository":{"url":"git://github.com/gilmoreorless/css-shorthand-properties.git","type":"git"},"_npmVersion":"6.2.0","description":"A simple list of CSS shorthand properties and which longhand properties they expand to","directories":{},"_nodeVersion":"9.3.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/css-shorthand-properties_1.1.1_1531789959445_0.9688998812837999","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"css-shorthand-properties","description":"A simple list of CSS shorthand properties and which longhand properties they expand to","keywords":["css","shorthand","short","list"],"version":"1.1.2","author":{"name":"Gilmore Davidson"},"homepage":"https://github.com/gilmoreorless/css-shorthand-properties","repository":{"type":"git","url":"git://github.com/gilmoreorless/css-shorthand-properties.git"},"main":"index.js","license":"MIT","_id":"css-shorthand-properties@1.1.2","gitHead":"130ff6b453fe552b03810ca17163f1869123a770","bugs":{"url":"https://github.com/gilmoreorless/css-shorthand-properties/issues"},"_nodeVersion":"20.12.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-C2AugXIpRGQTxaCW0N7n5jD/p5irUmCrwl03TrnMFBHDbdq44CFWR2zO7rK9xPN4Eo3pUxC4vQzQgbIpzrD1PQ==","shasum":"38fe2d8422190607cdb19c273c42303b774daf99","tarball":"https://registry.npmjs.org/css-shorthand-properties/-/css-shorthand-properties-1.1.2.tgz","fileCount":5,"unpackedSize":11204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3I9ljKyr3yDMKJs3rhCFPsZCXjyHFUyasOC5VasNGNwIhAIp9lEZu3Smmki+ha8QAYj9z8XQDyaux2uTpKw3NGpAs"}]},"_npmUser":{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"},"directories":{},"maintainers":[{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-shorthand-properties_1.1.2_1727425644674_0.2685252434407501"},"_hasShrinkwrap":false}},"time":{"created":"2014-10-23T21:16:27.351Z","modified":"2024-09-27T08:27:25.022Z","0.1.0":"2014-10-23T21:16:27.351Z","1.0.0":"2014-11-24T03:06:27.934Z","1.1.0":"2017-11-11T11:32:08.192Z","1.1.1":"2018-07-17T01:12:39.547Z","1.1.2":"2024-09-27T08:27:24.844Z"},"bugs":{"url":"https://github.com/gilmoreorless/css-shorthand-properties/issues"},"author":{"name":"Gilmore Davidson"},"homepage":"https://github.com/gilmoreorless/css-shorthand-properties","keywords":["css","shorthand","short","list"],"repository":{"type":"git","url":"git://github.com/gilmoreorless/css-shorthand-properties.git"},"description":"A simple list of CSS shorthand properties and which longhand properties they expand to","maintainers":[{"name":"gilmoreorless","email":"gilmoreorless@gmail.com"}],"readme":"# CSS Shorthand Properties\n\nA simple way to list all [shorthand](https://www.w3.org/TR/CSS2/about.html#shorthand) CSS properties and which properties they expand to.\n\nI tried to search for an existing simple list but couldn't find one, so I trawled through the various [W3C CSS specs](https://www.w3.org/Style/CSS/current-work) and collated the data.\n\nOnly specs that are Candidate Recommendations or better are counted, with the exception of some Working Drafts that have a lot of traction in browser implementations. So far the WD specs included here are Animation and Transitions.\n\n## Usage\n\nAvailable on npm as `css-shorthand-properties`, or in the browser as a global called `cssShorthandProps`\n\n### Properties\n\n#### shorthandProperties\n\nThe core data as a simple JS object. Each key is a CSS shorthand property. Each value is a compacted list of CSS properties that the shorthand expands to.\n\nThere is a convenience method (listed below) that means you shouldn’t need to access this list directly, but it’s available for other use cases.\n\n\n### Methods\n\n#### isShorthand\n\n* Returns a boolean indicating if a CSS property is a shorthand.\n* **Parameters**:\n    * `property` _(String)_ Shorthand property to expand.\n* **Returns**: _Boolean_\n\n```js\ncssShorthandProps.isShorthand('border');  // true\ncssShorthandProps.isShorthand('display');  // false\n```\n\n#### expand\n\n* Takes a CSS shorthand property and returns a list of longhand properties.\n* **Parameters**:\n    * `property` _(String)_ Shorthand property to expand.\n    * `recurse` _(Boolean – optional, default `false`)_ If true, each longhand property will also be run through `expand()`. This is only useful for the `border` property.\n* **Returns**: _Array_ with a list of longhand properties that the given property expands to. If the property is not a shorthand, the array contains only the original property.\n\n```js\n// Standard usage\ncssShorthandProps.expand('list-style');\n// ['list-style-type', 'list-style-position', 'list-style-image']\n\n// Non-shorthand properties return themselves in an array\ncssShorthandProps.expand('color');\n// ['color']\n\n// Using 'border' in normal mode...\ncssShorthandProps.expand('border');\n// ['border-width', 'border-style', 'border-color']\n\n// ...but the border properties are also shorthands\ncssShorthandProps.expand('border-width');\n// ['border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width']\n\n// Using 'border' with recursion returns an array of arrays\ncssShorthandProps.expand('border', true);\n/*\n[\n  ['border-top-width', 'border-right-width', 'border-bottom-width', 'border-left-width'],\n  ['border-top-style', 'border-right-style', 'border-bottom-style', 'border-left-style'],\n  ['border-top-color', 'border-right-color', 'border-bottom-color', 'border-left-color']\n]\n*/\n```\n\n## Licence\n\nMIT: [https://gilmoreorless.mit-license.org/]()\n\n","readmeFilename":"README.md","license":"MIT"}