Gathering detailed insights and metrics for @emmetio/css-abbreviation
Gathering detailed insights and metrics for @emmetio/css-abbreviation
The essential toolkit for web-developers
npm install @emmetio/css-abbreviation
Typescript
Module System
Node Version
NPM Version
99.7
Supply Chain
80.9
Quality
78.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.39%)
JavaScript (0.61%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
33,359,168
Last Day
18,368
Last Week
328,377
Last Month
1,309,858
Last Year
14,838,795
MIT License
4,491 Stars
280 Commits
522 Forks
155 Watchers
3 Branches
50 Contributors
Updated on Feb 14, 2025
Minified
Minified + Gzipped
Latest Version
2.1.8
Package Id
@emmetio/css-abbreviation@2.1.8
Unpacked Size
87.91 kB
Size
13.23 kB
File Count
13
NPM Version
lerna/6.5.1/node@v16.16.0+x64 (darwin)
Node Version
16.16.0
Published on
May 10, 2023
Cumulative downloads
Total Downloads
Last Day
-2.1%
18,368
Compared to previous day
Last Week
4.4%
328,377
Compared to previous week
Last Month
26.8%
1,309,858
Compared to previous month
Last Year
53.8%
14,838,795
Compared to previous year
1
Parses 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.
Unlike in markup abbreviations, elements in stylesheet abbreviations cannot be nested and contain attributes, but allow embedded values in element names.
You can install it via npm:
1npm install @emmetio/css-abbreviation
Then add it into your project:
1import parse from '@emmetio/css-abbreviation'; 2 3const props = parse('p10+poa'); 4/* [{ 5 name: 'p', 6 value: [{ type: 'CSSValue', value: [...] }], 7 important: false 8}, { 9 name: 'poa', 10 value: [], 11 important: false 12}] */
The returned result is an array of CSSProperty
items: a node with name and values.
Emmet 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.
Since CSS properties can’t be nested, the only available operator is +
.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 6
Reason
Found 13/30 approved changesets -- score normalized to 4
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More