{"name":"@emmetio/css-abbreviation","version":"2.0.0-rc.8","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.8"},"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":"785b7f546ce9411d780308090d6f8e010d188337","_id":"@emmetio/css-abbreviation@2.0.0-rc.8","_nodeVersion":"12.14.1","_npmVersion":"lerna/3.20.2/node@v12.14.1+x64 (darwin)","dist":{"integrity":"sha512-aSzBTL1z43YjKD9txW6CdPs3x+bWryhDwtUC+Gg/2hw/9V8G/KuVr7hzyFOSfSbjhkkofBAHB+pYoVGF7hT27w==","shasum":"a413af8908c14df16fbe7dcb5eae07c6b7f5b3d7","tarball":"http://registry-npm.ywwl.com/@emmetio/css-abbreviation/download/@emmetio/css-abbreviation-2.0.0-rc.8.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\nwsFcBAEBCAAQBQJekhgjCRA9TVsSAnZWagAAARMP/AzEV0SovUKpfPnJsdnS\np/t/lzilEQMiWFR/DZPplnDQG3CrsqPLes3+AqXpO3gEwjPpm/LLpByK62ZM\nbt3Z4o2chKmQbgyieTUK8ZzSdpVlmsMdUFxuFUXuVl+oPGnRt1MVal5g0qzd\nUpo9C90iHba8HGNGD9sByNSkjE+zcAK0vg3IH1vPCVQZpZudw6LcOKNihhLX\nniif1N8zvoQ7+aEMFhxf4bGaBt4uVpSeciHw0QRrU829z27Yi1c0rxOfKsBm\nZHnR4fOoaNqKINcV5hkK1CE/fcvmdlDwXmXc9XF28Q+omhNcbJ2NYQj/liuU\neFHgBrepPSlF8a/VFsV3XkCh48px4RWXZSHlnfB3Aub4Aq7cUQD7bGcSHAn/\n/57/3Dtr3u24lStYcow8zXYHaOlKx40reyAOQF1mwXIS1Nv/GfE8jVYtEfSo\n+S1Y9rGvGNus15R2t8K+hN/Zk3b/tcYZS9eOL/+IzQCoPTn82D1Dpa3JbMwk\n83wT7p+b1MGjVvYEhhNt3Hp4lQyRGzT8eNOqtf4lvFShN5cI446pH6gDHyCr\nzeMWbQZ3faueVE8LUXsCO4z4eNb25NP3+cyhKlD3fsVW/sP1a+OGMlJnpBLA\nhI11/0Pivy6BOXxEUrFSj56U5nQsvcagS3GASWCodQK24JDv6x7To/rl6dI/\n7ZW+\r\n=3nIu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzjqHtwlUEBrYTmJZO+rShl1nkVFcINd3Z47rUcvIouAIhAO75YS6rfsv4A1pcXDaXwug6xOGRZA7/FSfv/m3higRD"}],"size":8211,"noattachment":false,"key":"/@emmetio/css-abbreviation/-/@emmetio/css-abbreviation-2.0.0-rc.8.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.8_1586632739377_0.11366228958631375"},"_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":1586632739529,"_cnpm_publish_time":1586632739529,"dist-tags":{"latest":"2.1.8"}}