
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@awes-io/resize
Advanced tools
Simple API for URL generation.
yarn add @awes-io/resize # yarn
npm i @awes-io/resize # npm
import resize from '@awes-io/resize'
// get the image with width 640px
resize('https://example.com/images/example.jpg', 640)
// result: https://example.com/cdn-cgi/image/w=640,q=75/images/example.jpg
// URL generation with parameters for resizing
resize(url, width = null, options = null)
| Name | Type | Default | Description |
|---|---|---|---|
| url | String | - | Link to the original image. |
| width | Number | null | (Optional) Width of the image, undefined by default. |
| options | Object | null | (Optional) List of options for modify parameters for image. More info: https://developers.cloudflare.com/images/about/ |
| customDomain | String | null | Use the option if you would like to change original domain name. |
Ensure to write proper commit message according to Git Commit convention
FAQs
Cloudflare Image Resizing: simple API for URL generation.
The npm package @awes-io/resize receives a total of 5 weekly downloads. As such, @awes-io/resize popularity was classified as not popular.
We found that @awes-io/resize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.