Socket
Socket
Sign inDemoInstall

smart-web-resource

Package Overview
Dependencies
128
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    smart-web-resource

Smart web resource - Express middleware


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Work in progress

Smart web resource (SWR) is an express middleware to serve resources (images, css, whatever) using transformations given by plugins.

Some samples:

Retrieve an image resized to 240 pixels width:

https://myhost/swr/resize:w(240)/images/cat.jpg

This can be done because "resize" is a node module added as a splugin to SWR.

Get minified css file:

https://myhost/swr/cssminifier/css/styles.css

Work in progress and first stable version available on december 2019.

FAQs

Last updated on 21 Oct 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc