
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@letruxux/weserv-js
Advanced tools
A TypeScript library for interacting with the weserv.nl image processing service.
A TypeScript library for interacting with the weserv.nl image processing service.
npm install @letruxux/weserv-js
bun add @letruxux/weserv-js
pnpm add @letruxux/weserv-js
yarn add @letruxux/weserv-js
import { ImageWeserv } from "@letruxux/weserv-js";
const imageUrl = new ImageWeserv("https://example.com/image.jpg")
.setWidth(300)
.setHeight(200)
.setFit("cover")
.setBlur(5)
.toString();
new ImageWeserv(url: string)
- Creates a new instance with the source image URL.
All methods return this
for method chaining.
setWidth(width: number)
- Sets image widthsetHeight(height: number)
- Sets image heightsetFit(fit: FitOption)
- Sets resize mode (contain|cover|fill|inside|outside)setBlur(blur: number)
- Sets blur intensity (0-100)setQuality(q: number)
- Sets output quality (1-100)setOutputFormat(format: OutputFormat)
- Sets output format (jpg|png|gif|tiff|webp|json)See src/defs.ts for all available options.
FAQs
A TypeScript library for interacting with the weserv.nl image processing service.
We found that @letruxux/weserv-js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.