@pixtega/url
v0.1.1
Published
URL builders for Pixtega, the on-demand image derivation service. Re-exports the pixtega package: pixtegaUrl, pixtegaSrcSet, pixtegaPicture.
Maintainers
Readme
@pixtega/url
URL builders for Pixtega, the
on-demand image derivation service. This package re-exports
pixtega unchanged and is
published from the same release tag; install whichever name you prefer.
npm install @pixtega/urlTypeScript source, same as pixtega. Node 22.6+ strips types on import;
bundlers compile it as usual.
import { pixtegaUrl, pixtegaSrcSet, pixtegaPicture } from "@pixtega/url";
pixtegaUrl({
base: "https://images.example.com",
mount: "public",
path: "photos/example.jpg",
width: 1280,
format: "webp",
});
// => "https://images.example.com/images/public/photos/example.jpg/w1280.webp"See the pixtega package for the
full API and option reference.
MIT, part of the Pixtega repository
under js/url.
