{"name":"@emmetio/css-abbreviation","version":"2.0.0-rc.7","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":"^7.0.2","@types/node":"^12.7.2","mocha":"^7.1.1","rollup":"^2.6.0","rollup-plugin-typescript2":"^0.27.0","ts-lint":"^4.5.1","ts-node":"^8.8.2","typescript":"^3.8.3"},"directories":{"test":"test"},"mocha":{"require":"ts-node/register","spec":"./test/*.ts"},"gitHead":"f92d0fbc20d57a48069113fc5ea134c691cf94a6","_id":"@emmetio/css-abbreviation@2.0.0-rc.7","_nodeVersion":"12.14.1","_npmVersion":"lerna/3.20.2/node@v12.14.1+x64 (darwin)","dist":{"integrity":"sha512-V4igbPHQx+fgfZWTdXZKOzWXHboYDcljPd0Q6hP3GD0jKspbg89DFhNTNXNBi9cMDiitxfIO5N7wNYVNusMTHQ==","shasum":"1c9a73d6e299e78b52b3b095195c93fb37e7cbc0","tarball":"http://registry-npm.ywwl.com/@emmetio/css-abbreviation/download/@emmetio/css-abbreviation-2.0.0-rc.7.tgz","fileCount":11,"unpackedSize":43711,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJekhU+CRA9TVsSAnZWagAAqzUQAIPVEzHoZyU8V7Xzrv5+\nGQ2jDcu4/A4cuwO9U/3Kj6J0AroB9EiH8DcERayGiIYtmNFz6vDow++v469u\nUh+bnwm9HDvsTLcxk6vF+5WV/XgHWJ9iNFyt0Xrb7KCQp32BArZmI9Y99sT5\nkzVOBIv9/l+dmLm1mS7sq1v9NJ3gUqaGSFbaCFSjoz+h99+igwKMh09Bq1DP\nZpaJ/Wb2oO5DfdPYucw2EzWLyMqSlIRFigW99Uy39WQ+tfkYuJeO5kF/OAIK\nzPWtxUbbeUlS0dFtRcufn8l+35J5C4mvecaHrMnpw1JuR6FE8vOC5K4OOYmW\npenkNS1JMz+3o7VRWlHwKTzB3JPBxOvAgRDGTtNumyFjj8ej8pK0yfiiNbaz\nxXEPkPKqvfXVk0gvBOuDsoGi5fVcFfthMu8XE0vgqpu4LtpQbteuLCAwG7Ys\nbBT1BS0n1PhIWbSC6QY74r45R7GKg87KQiyBQJrtbgi5BmVNZQgNP2v8tYgn\nfKDCMOFLS8NF+iiVJk5BAsEmiM8CKwWVTe0PmLJWTro4suV8RkkGWfwzcHA2\n5fyYUO1r73noY7P+Msj/Utf55EGnjFiQjGwrjZUOAa24GloqGmdjeZ3Al/v0\nW2au29UQ3jDnbQvtBMaXd9awQu6Trb/qDouxwdiJLmV19T6b2j5ggi2E3eI2\n/PaK\r\n=TQTs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuHNZokMg0//X7yvC5qCJYSA7BPn73n7HZ3wxQWhiP7gIgLC5gz9nNOwGdJbPG7WF6J/VZwX6Gs5TYKnfQ12WxeQQ="}],"size":8208,"noattachment":false,"key":"/@emmetio/css-abbreviation/-/@emmetio/css-abbreviation-2.0.0-rc.7.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.7_1586631998546_0.8289415720938897"},"_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":1586631998712,"_cnpm_publish_time":1586631998712,"dist-tags":{"latest":"2.1.8"}}