{"name":"@emmetio/css-abbreviation","version":"2.0.0-rc.6","description":"Parses Emmet CSS abbreviation into AST tree","main":"./dist/css-abbreviation.cjs.js","module":"./dist/css-abbreviation.es.js","types":"./dist/index.d.ts","scripts":{"lint":"tslint ./src/*.ts","test":"mocha","build":"rollup -c","clean":"rm -rf ./dist","prepare":"npm run lint && npm test && npm run clean && npm run build"},"repository":{"type":"git","url":"git+https://github.com/emmetio/emmet.git"},"keywords":[],"author":{"name":"Sergey Chikuyonok","email":"serge.che@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/emmetio/emmet/issues"},"homepage":"https://github.com/emmetio/emmet#readme","dependencies":{"@emmetio/scanner":"^0.0.4"},"devDependencies":{"@types/mocha":"^5.2.7","@types/node":"^12.7.2","mocha":"^6.1.4","rollup":"^1.16.2","rollup-plugin-typescript2":"^0.21.2","ts-lint":"^4.5.1","ts-node":"^8.3.0","typescript":"^3.5.2"},"directories":{"test":"test"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"a0133bae41240192f74a3aac0fd8ff0bf1a00579","_id":"@emmetio/css-abbreviation@2.0.0-rc.6","_nodeVersion":"12.14.1","_npmVersion":"lerna/3.16.4/node@v12.14.1+x64 (darwin)","dist":{"integrity":"sha512-zarAY2ayTbxEsyBP4ciawwOxex7enpghoxP29T4jX4TwB81FYAc9e05jfP31e9TN4o9syme9wugI5mET2YbOwA==","shasum":"a85cd3550f05be113432b21070b044109de6302d","tarball":"http://registry-npm.ywwl.com/@emmetio/css-abbreviation/download/@emmetio/css-abbreviation-2.0.0-rc.6.tgz","fileCount":11,"unpackedSize":42647,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYXToCRA9TVsSAnZWagAAy0IP/3DVr6aFI0qMFbA0ldAU\nXvbZyI2l4ACLczXZgazhmHai3bHlDiSG0GWF/3MoNGNniaYxvNXeCJhpo447\nedW8u3J3Pd5K4Do2o7xF46M0Ag+94ksMFXLh/vXmdJ+o9f6XT+570HIkoGB8\nWlmjT2zIBXwBaN+zY9q39GZp35+xiHVACTiD8iuL1i0fpAdePY177EAQL0H5\nobDsdNp44u6xNiL67hHojmTI4r/THGdw41O/IzaGM94UEIUwNqF76Uqsd3zb\nH4h3Q7xFuDdE+smtKv8eoJhizP8fefkZOZuo0l+L9d6lFcuqxWK1qaZI9/dW\nC4XLnVK245+YmOCbQQOJ/jh7NDOn7AtZqGAxdH71y8ECYMTs5sbr7B07BBdB\nYP3BResT/lTiZt8V89oSamvhCC6E3AvAwEXNkLCMczatSQlbu2gZnqqNFT2b\nTJVkH8ZN7uzRNt0FaRVt1VVnPojUNj5Pjq0J6eTyi4iyZwcXCBbUy5PYZMcb\ngz2BV+YXOLwvvWkrR+zKi8DDM/RrL2FRftEuwj/6s2kVb5StmmJb3IGPmaJT\nmZFW2bT9NC0/YdH3l8IRVMbBwRoK+evKBhEYGj0jBP701H5/En6JcY1nUt9V\nzAjSSXpsvgVHF3lay+oJRyqGGTEtCdjggySvQx6u7X/ZeBFa/llE04e4XhhL\nWBeV\r\n=nZpB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEgo4HNu7GMkbwHUNiUHAR1JgPPy3+f+YpUZHyCDvD4QIgALJAFkEiBB9VlXwotlNHQ9Hf1fPvNiKDihEcL5m/3+I="}],"size":8105,"noattachment":false,"key":"/@emmetio/css-abbreviation/-/@emmetio/css-abbreviation-2.0.0-rc.6.tgz"},"maintainers":[{"email":"info@emmet.io","name":"emmetio-user"},{"email":"serge.che@gmail.com","name":"serge.che"}],"_npmUser":{"name":"serge.che","email":"serge.che@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/css-abbreviation_2.0.0-rc.6_1583445224318_0.2876262761192394"},"_hasShrinkwrap":false,"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":1583445224450,"_cnpm_publish_time":1583445224450,"dist-tags":{"latest":"2.1.8"}}