{"name":"@emmetio/css-abbreviation","version":"2.0.0-rc.2","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":"4aaeb211f9e008c6b34dcc596bd16f648e54ba68","_id":"@emmetio/css-abbreviation@2.0.0-rc.2","_nodeVersion":"10.13.0","_npmVersion":"lerna/3.16.4/node@v10.13.0+x64 (darwin)","dist":{"integrity":"sha512-FlHLGxcCTh/ZjKumNwXEohpZUCxhn+wQPwp5N5XsBKy3M20Xig6dJ5wzffFR5yRD94k4AN3UWp5/pV7nk8plIg==","shasum":"49e98af9b3669306c3315cab9585cd09bd3946b5","tarball":"http://registry-npm.ywwl.com/@emmetio/css-abbreviation/download/@emmetio/css-abbreviation-2.0.0-rc.2.tgz","fileCount":11,"unpackedSize":41678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdamOtCRA9TVsSAnZWagAAS0sQAJVamSc0a9/BZ9tESdt5\ncQNkP5Orp/AjfV3UTykj894cvMdmDKYdfm+uaYE0dv8tsXZKeGUQMEHIopet\n1xShXU5Sj0mmH58okkRmTDP9J/wvVFr6KQWGP5HnXJUjnYPc7A8wTSjICu8L\n4hSU21ML5yyxswNT8SRAp7qQMcrWEvlx0hg+dq2EBoQWMD0UVTJQQsNVd6FI\n3Wh3+qrPMkX5mecqnNbOjp48d6rc49ERqW6Q15m0zD5rS+YDVQ0G9xjNzc3u\nGN7L3WDZHaKFfHJvdHLqYA2UnJFfZXdtA5i6qO60npAIw17xfdJ+E8L6nqh7\n/ruAs/+Wa//NfeTiTsXUdE5ZnnjoW2wV7BEzcWcNp4cHjIdCyav/f7TszL4e\n1CfboAmefrh13S7qqY/WjX9PPTSwut4MraHO31azyHSFX4gvDJN2CJ1xoXgQ\n7fS22j1KQLXCjcvbmnOPCnJMs2Mcd5iGG81KUwvUw8zPLjxfMRKg/SuO0i+I\n2Sl2frd+8tbLUyFB9Fent6mlr0q0CJ2JqI+3kIpfJqXjgdPskHiYlT023J9j\nJM4du/s2hQPcPHW5RXVeWVwN70CDCMw4ubtF/Sso4+3BFG2yAi77b9MKVu+9\nTQadHeYUKF92sRCOD9XNBanbBKSCCN0sGycnfObBL+PoSQ9Jy6BMpxGUTGxi\ncs5z\r\n=HYd4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHOHMPDLs9fFXGrJmTQD7E/WJBm7SDkeDlW/pomDjrIAiAVpcTqyGSA9hx4Tzm/NRTfHpetIjBnvyPteVyZ+cRf+Q=="}],"size":7927,"noattachment":false,"key":"/@emmetio/css-abbreviation/-/@emmetio/css-abbreviation-2.0.0-rc.2.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.2_1567253420957_0.7346105245046264"},"_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":1567253421118,"_cnpm_publish_time":1567253421118,"dist-tags":{"latest":"2.1.8"}}