Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lws-range

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lws-range

Adds support for HTTP Range Requests to lws

  • 4.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

view on npm npm module downloads Gihub repo dependents Gihub package dependents Node.js CI js-standard-style

lws-range

Lws middleware plugin adding support for HTTP Range Requests. Wraps koa-range.

Synopsis

Install the plugin then launch a server supporting only range requests and static files.

$ npm install --save-dev lws-range

$ ws --stack lws-range lws-static
Listening on http://mbp.local:8000, http://127.0.0.1:8000, http://192.168.0.200:8000

Make some requests - note the presence of Accept-Ranges: bytes in the response.

$ curl http://127.0.0.1:8000/package.json -I
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 649
Last-Modified: Sun, 27 Feb 2022 14:26:27 GMT
Cache-Control: max-age=0
Content-Type: application/json; charset=utf-8
Date: Sun, 27 Feb 2022 14:30:21 GMT

For more info about --stack please read Using Middleware and the rest of the wiki.


© 2018-22 Lloyd Brookes <75pound@gmail.com>.

Keywords

FAQs

Package last updated on 27 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc