IPX Client for Node.js and Browser
See IPX for more information.
Install package:
npm i ipx-clientyarn install ipx-client
Import client:
const img =
img()
is a factory function to configure base options:
// getImage: (path, opts?, format?) => URLconst getImage = // => https://cdn.example.com/jpg/w_200/uploads/posts/ipx.png getImage // => https://cdn.example.com/webp/s_400_400/uploads/posts/ipx.png