Gathering detailed insights and metrics for posthtml-postcss-modules
Gathering detailed insights and metrics for posthtml-postcss-modules
npm install posthtml-postcss-modules
Typescript
Module System
Node Version
NPM Version
JavaScript (98.99%)
CSS (1.01%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
19,327
Last Day
21
Last Week
133
Last Month
703
Last Year
3,878
MIT License
20 Stars
66 Commits
3 Forks
8 Watchers
1 Branches
11 Contributors
Updated on Apr 04, 2024
Minified
Minified + Gzipped
Latest Version
0.1.7
Package Id
posthtml-postcss-modules@0.1.7
Unpacked Size
10.50 kB
Size
3.78 kB
File Count
4
NPM Version
6.9.0
Node Version
12.4.0
Cumulative downloads
Total Downloads
Last Day
40%
21
Compared to previous day
Last Week
-20.4%
133
Compared to previous week
Last Month
93.1%
703
Compared to previous month
Last Year
320.6%
3,878
Compared to previous year
1npm i -D posthtml-postcss-modules
1options = { 2 root: './', // root path for links lookup 3 from: '' // pathname to resolving file (it's always better to provide it) 4 plugins: [], // postcss plugins to apply for every link 5 generateScopedName: genericNames // function to process css names or string 6};
1<!-- header.html --> 2<link href="header.css" module/> 3 4<style module> 5 .navigation {height: 100px;} 6</style> 7 8<header classname="root"> 9 <nav classname="root navigation"> 10 </nav> 11</header>
1/* header.css */ 2.root {background-color: white;}
1const { readFileSync } = require('fs') 2const posthtml = require('posthtml') 3 4posthtml() 5 .use(require('posthtml-postcss-modules')({ 6 generateScopedName: '[hash:base64:5]' 7 })) 8 .process(readFileSync('header.html', 'utf8')) 9 .then((result) => result) 10 })
1 <style>.wqroe {background-color: white;}</style> 2 <style>._32Lja {height: 100px;}</style> 3 4 <header class="wqroe"> 5 <nav class="wqroe _32Lja"></nav> 6 </header>
MIT License (MIT)
Copyright (c) 2016 PostHTML Aleksandr Yakunichev
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 13/15 approved changesets -- score normalized to 8
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- 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
SAST tool is not run on all commits -- score normalized to 0
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