Installations
npm install lws-static
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=12.17
Node Version
22.5.1
NPM Version
10.8.2
Score
98.3
Supply Chain
70.3
Quality
75.6
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (99.86%)
HTML (0.14%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
lwsjs
Download Statistics
Total Downloads
14,926,330
Last Day
11,077
Last Week
60,043
Last Month
267,755
Last Year
3,369,253
GitHub Statistics
MIT License
5 Stars
53 Commits
2 Forks
3 Watchers
1 Branches
1 Contributors
Updated on Jan 07, 2025
Bundle Size
24.13 kB
Minified
7.49 kB
Minified + Gzipped
Package Meta Information
Latest Version
3.1.1
Package Id
lws-static@3.1.1
Unpacked Size
5.44 kB
Size
2.24 kB
File Count
4
NPM Version
10.8.2
Node Version
22.5.1
Published on
Aug 01, 2024
Total Downloads
Cumulative downloads
Total Downloads
14,926,330
Last Day
4.5%
11,077
Compared to previous day
Last Week
-0.7%
60,043
Compared to previous week
Last Month
14.3%
267,755
Compared to previous month
Last Year
15%
3,369,253
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
3
lws-static
Lws middleware plugin to serve static files, wraps koa-static. See here for usage instrutions.
Adds the following options to lws
.
--directory, -d path Root directory, defaults to the current directory.
--static.maxage number Cache max-age (in seconds) applied to all resources served.
--static.defer If true, serves after `await next`, allowing any downstream middleware to
respond first.
--static.index path Default file name, defaults to `index.html`.
--static.extensions ext One or more default filename extensions. For example, if you set
`--static.extensions html` and request `/page` then the server will look for
both `page` and `page.html` on disk, serving the latter.
© 2016-24 Lloyd Brookes <75pound@gmail.com>.

No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
3 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-28mc-g557-92m7
- Warn: Project is vulnerable to: GHSA-593f-38f6-jp5m
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/node.js.yml:1
- Info: no jobLevel write permissions found
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/lwsjs/static/node.js.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/lwsjs/static/node.js.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/node.js.yml:28
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
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
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
Score
3.2
/10
Last Scanned on 2025-02-24
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