Socket
Book a DemoInstallSign in
Socket

@guardian/image

Package Overview
Dependencies
Maintainers
22
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/image

Image signing and sizing for the Guardian

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
22
Created
Source

@guardian/image

Note, this will not work without the correct salt value so only usuable within the Guardian.

Security: use this library server-side only.

A server-side JS/Typescript library to sign and format master images so that they can be served through our Fastly image service.

format(url: string, salt: string, profile: Profile)

url must be a valid master image URL.

salt must be kept secure. Do not use this library on the client-side.

Profile can include any properties supported by the Fastly image service. Docs here: https://docs.fastly.com/api/imageopto/#image-api-reference.

FAQs

Package last updated on 27 Nov 2019

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