Gathering detailed insights and metrics for selector-to-hash
Gathering detailed insights and metrics for selector-to-hash
Gathering detailed insights and metrics for selector-to-hash
Gathering detailed insights and metrics for selector-to-hash
The selector-to-hash is easy to hash HTML and CSS selectors.
npm install selector-to-hash
Typescript
Module System
Node Version
NPM Version
TypeScript (95.8%)
JavaScript (4.2%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
20 Commits
1 Watchers
13 Branches
1 Contributors
Updated on May 22, 2020
Latest Version
0.0.6
Package Id
selector-to-hash@0.0.6
Unpacked Size
8.36 kB
Size
3.79 kB
File Count
15
NPM Version
6.14.5
Node Version
14.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
The selector-to-hash is easy to hash HTML and CSS selectors.
⚠ This is incomplete and we recommend that you do not use it.
This converts the class to hash and allows for a scoped CSS with no duplicates.
Currently, only the class selector is supported.
before |
---|
1<div class="test"> 2 <p class="text-center">selectorToHash</p> 3</div>
1.test { 2 width: 300px; 3 background: #ccc; 4} 5.text-center { 6 text-align: center; 7}
after |
---|
1<div class="h-aaaa1111"> 2 <p class="h-bbbb2222">selectorToHash</p> 3</div>
1.h-aaaa1111 { 2 width: 300px; 3 background: #ccc; 4} 5.h-bbbb2222 { 6 text-align: center; 7}
1$ yarn add selector-to-hash # or npm install selector-to-hash
1import { selectorToHash } from 'selector-to-hash' 2 3const html = 4` 5<div class="test">selectorToHash</div> 6` 7 8const css = 9` 10.test { 11 color: blue; 12} 13` 14 15selectorToHash(html, css) 16/* 17{ 18 html: 19 ` 20 <div class="h-aaaa1111">selectorToHash</div> 21 `, 22 css: 23 ` 24 .h-aaaa1111 { 25 color: blue; 26 } 27 ` 28} 29*/
1const selectorToHash = require("selector-to-hash").selectorToHash; 2 3selectorToHash(html, css) 4/* 5{ 6 html: '', 7 css: '', 8} 9*/
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
no SAST tool detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/20 approved changesets -- score normalized to 0
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
30 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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