Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
corporate-punk
Advanced tools
Readme
Sometimes you need a placeholder server with your own stock or corporate images. Punk allows you to throw a bunch of images inside a folder and run the server
Make sure you have imagemagick
installed in your OS then:
npm i -g corporate-punk
To run the server you can provide your own directories from where to pull the images.
parameter | description | example |
---|---|---|
--images | Path to images folder | punk --images='/path/to/images' |
--cache | Path to processed images cache folder | punk --cache='/path/to/cache' |
--port | Port to listen on | punk --port=3000 |
parameter | description | example |
---|---|---|
resize | Resizes the final image by given width and height | /hold?resize=400x400 |
crop | Crops the final image by given width and height | /hold?crop=200x250 |
quality | Sets the image quality: [1-100] | /hold?quality=25 |
image | Select an specific image, if not present, a random image will be returned | /hold?image=calaveras.jpg |
Sometimes you might want to clear the cache for different reasons, in that case just go to the UI and hit the Clear cache button. Note this action is publicly available so far, probably in the future will be password protected.
This app is just passing query parameters directly to an imagemagick
wrapper, without any kind of sanity check, bad shit can happen.
Sanitize query strings
FAQs
Self-hosted image placeholder server
The npm package corporate-punk receives a total of 7 weekly downloads. As such, corporate-punk popularity was classified as not popular.
We found that corporate-punk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.