Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Middleware for lws to serve static files.

License

NotificationsYou must be signed in to change notification settings

lwsjs/static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

view on npmnpm module downloadsGihub repo dependentsGihub package dependentsNode.js CIjs-standard-style

lws-static

Lws middleware plugin to serve static files, wrapskoa-static. Seehere for usage instrutions.

Adds the following options tolws.

--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>.

About

Middleware for lws to serve static files.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp