@simpleimg/src-builder
v1.0.11
Published
This module helps you build image src for Simple Image Cloud easily. It allows you to serve images from Simple Image Cloud CDN with transformations and variations easily.
Downloads
27
Readme
Simple Image Cloud - Src Builder for Javascript
This module helps you build image src for Simple Image Cloud easily. It allows you to serve images from Simple Image Cloud CDN with transformations and variations easily.
Install
yarn add @simpleimg/src-builder
or
npm install @simpleimg/src-builder
Documentation
You can find the documentation for the Src Builder here.
Quick Usage
import srcBuilder from '@simpleimg/src-builder';
const src = srcBuilder({
account: '[YOUR_ACCOUNT_ID]',
src: 'image-1.jpg',
width: 500
});
console.log(src);
// https://[YOUR_ACCOUNT_ID].simpleimg.io/image-1.jpg?w=500
Feedback
We want to hear your issue reports and feature requests at [email protected]