Gathering detailed insights and metrics for @ericcarraway/css-classname-hash
Gathering detailed insights and metrics for @ericcarraway/css-classname-hash
npm install @ericcarraway/css-classname-hash
Typescript
Module System
Min. Node Version
Node Version
NPM Version
66.3
Supply Chain
73.2
Quality
75.5
Maintenance
100
Vulnerability
100
License
JavaScript (97.59%)
TypeScript (1.74%)
Shell (0.67%)
Total Downloads
20,426
Last Day
14
Last Week
55
Last Month
284
Last Year
4,949
1 Stars
66 Commits
3 Watching
1 Branches
1 Contributors
Minified
Minified + Gzipped
Latest Version
0.0.4
Package Id
@ericcarraway/css-classname-hash@0.0.4
Unpacked Size
5.08 kB
Size
2.43 kB
File Count
5
NPM Version
8.1.4
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last day
40%
14
Compared to previous day
Last week
-26.7%
55
Compared to previous week
Last month
8%
284
Compared to previous month
Last year
-63.1%
4,949
Compared to previous year
css-classname-hash
is an opinionated string hashing function for minifying CSS class names in Node.js, intended for use in front-end build systems.
INSTALLATION
npm i --save-dev @ericcarraway/css-classname-hash
USAGE
1// note the `.default` 2const hashClassName = require('@ericcarraway/css-classname-hash').default; 3 4// an example BEM class name 5hashClassName('block-name__elem-name_mod-name_mod-val') // 'YMpSk' 6 7// other examples 8hashClassName('container') // 'Xwtuv' 9hashClassName('header') // 'CZ5lT' 10hashClassName('navigation') // 'ZFgu9'
DETAILS
Creates a base64-encoded md5 hash using Node's built-in crypto
module
Removes characters that are invalid for CSS class names
Ensures that the hashed CSS class name
Bootstrapped with TSDX
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
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
26 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
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