Installations
npm install @beisen/postcss-modules-local-by-default
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>= 6
Node Version
8.10.0
NPM Version
6.9.0
Score
70.6
Supply Chain
86.4
Quality
80.4
Maintenance
50
Vulnerability
100
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
css-modules
Download Statistics
Total Downloads
1,669
Last Day
1
Last Week
3
Last Month
14
Last Year
147
GitHub Statistics
28 Stars
194 Commits
13 Forks
5 Watching
1 Branches
24 Contributors
Bundle Size
134.63 kB
Minified
35.18 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.1
Package Id
@beisen/postcss-modules-local-by-default@1.0.1
Unpacked Size
16.95 kB
Size
4.95 kB
File Count
3
NPM Version
6.9.0
Node Version
8.10.0
Total Downloads
Cumulative downloads
Total Downloads
1,669
Last day
0%
1
Compared to previous day
Last week
0%
3
Compared to previous week
Last month
250%
14
Compared to previous month
Last year
-39%
147
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
Dev Dependencies
6
CSS Modules: Local by Default
Transformation examples:
1.foo { ... } /* => */ :local(.foo) { ... } 2 3.foo .bar { ... } /* => */ :local(.foo) :local(.bar) { ... } 4 5/* Shorthand global selector */ 6 7:global .foo .bar { ... } /* => */ .foo .bar { ... } 8 9.foo :global .bar { ... } /* => */ :local(.foo) .bar { ... } 10 11/* Targeted global selector */ 12 13:global(.foo) .bar { ... } /* => */ .foo :local(.bar) { ... } 14 15.foo:global(.bar) { ... } /* => */ :local(.foo).bar { ... } 16 17.foo :global(.bar) .baz { ... } /* => */ :local(.foo) .bar :local(.baz) { ... } 18 19.foo:global(.bar) .baz { ... } /* => */ :local(.foo).bar :local(.baz) { ... }
Building
1$ npm install 2$ npm test
Development
1$ npm run autotest
License
MIT
With thanks
Mark Dalgleish, 2015.
No vulnerabilities found.
Reason
11 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
GitHub workflow tokens follow principle of least privilege
Details
- Info: topLevel 'contents' permission set to 'read': .github/workflows/nodejs.yml:14
- Info: no jobLevel write permissions found
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
5 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
Reason
Found 6/27 approved changesets -- score normalized to 2
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/css-modules/postcss-modules-local-by-default/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:76: update your workflow using https://app.stepsecurity.io/secureworkflow/css-modules/postcss-modules-local-by-default/nodejs.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/css-modules/postcss-modules-local-by-default/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/css-modules/postcss-modules-local-by-default/nodejs.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/css-modules/postcss-modules-local-by-default/nodejs.yml/master?enable=pin
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 third-party GitHubAction dependencies pinned
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 20 are checked with a SAST tool
Score
5
/10
Last Scanned on 2025-01-06
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