{"name":"@emmetio/css-abbreviation","version":"0.3.0","description":"Parses Emmet CSS abbreviatoin into AST tree","main":"dist/css-abbreviation.cjs.js","module":"dist/css-abbreviation.es.js","scripts":{"test":"mocha","build":"rollup -c","prepublish":"npm run test && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/css-transform.git"},"keywords":[],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/css-transform/issues"},"homepage":"https://github.com/emmetio/css-transform#readme","dependencies":{"@emmetio/node":"^0.1.0","@emmetio/stream-reader":"^2.0.0","@emmetio/stream-reader-utils":"^0.1.0"},"devDependencies":{"babel-plugin-transform-es2015-modules-commonjs":"^6.18.0","babel-register":"^6.18.0","mocha":"^3.2.0","rollup":"^0.41.4"},"directories":{"test":"test"},"gitHead":"d25571df81ad070d488118db330fc5cf4c281486","_id":"@emmetio/css-abbreviation@0.3.0","_shasum":"6270199f369ce64fa930aeb436c3876f4113a268","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.3","_npmUser":{"name":"emmetio","email":"info@emmet.io"},"dist":{"shasum":"6270199f369ce64fa930aeb436c3876f4113a268","tarball":"http://registry-npm.ywwl.com/@emmetio/css-abbreviation/download/@emmetio/css-abbreviation-0.3.0.tgz","integrity":"sha512-hMxDqaQouNkaG42H/Bj9J8HfrFol4fMeQs6IJCPZJCofOSTwYGGfSE0jJ47Fu5RZ4RCas+GvD/Q9Dxqs60ZFSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCw1g0GLmVuJgn3fV0XAfR2OP0RTuPuINI+rqLfipIQ2gIgHJ21UJIWSqI2yhNe6AeXzCaVKBz8wgJSfdBnn9Cf0Og="}],"size":5155,"noattachment":false,"key":"/@emmetio/css-abbreviation/-/@emmetio/css-abbreviation-0.3.0.tgz"},"maintainers":[{"name":"emmetio","email":"info@emmet.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/css-abbreviation-0.3.0.tgz_1490225762762_0.9240520503371954"},"readme":"# Emmet stylesheet abbreviation parser\n\nParses given Emmet *stylesheet* abbreviation into AST. Parsing is performed in two steps: first it tokenizes given abbreviation (useful for syntax highlighting in editors) and then tokens are analyzed and converted into AST nodes as plain, JSON-serializable objects.\n\nUnlike in [markup abbreviations](/packages/abbreviation), elements in stylesheet abbreviations cannot be nested and contain attributes, but allow embedded values in element names.\n\n## Usage\n\nYou can install it via npm:\n\n```bash\nnpm install @emmetio/css-abbreviation\n```\n\nThen add it into your project:\n\n```js\nimport parse from '@emmetio/css-abbreviation';\n\nconst props = parse('p10+poa');\n/* [{\n    name: 'p',\n    value: [{ type: 'CSSValue', value: [...] }],\n    important: false\n}, {\n    name: 'poa',\n    value: [],\n    important: false\n}] */\n```\nThe returned result is an array of `CSSProperty` items: a node with name and values.\n\n## Abbreviation syntax\n\nEmmet stylesheet abbreviation element may start with name and followed by values, optionally chained with `-` delimiter. In most cases, actual CSS properties doesn’t have numbers in their names (or at least they are not used in abbreviation shortcuts) so a number right after alpha characters is considered as *embedded value*, as well as colors starting with `#` character: `p10`, `bg#fc0` etc. If implicit name/value boundary can’t be identified, you should use `-` as value separator: `m-a`, `p10-20` etc.\n\n### Operators\n\nSince CSS properties can’t be nested, the only available operator is `+`.\n","publish_time":1490225764807,"_cnpm_publish_time":1490225764807,"dist-tags":{"latest":"2.1.8"}}