@simpleimg/src-builder
TypeScript icon, indicating that this package has built-in type declarations

1.0.11 • Public • Published

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 support@simpleimagecloud.com

Readme

Keywords

none

Package Sidebar

Install

npm i @simpleimg/src-builder

Weekly Downloads

1

Version

1.0.11

License

MIT

Unpacked Size

51.8 kB

Total Files

6

Last publish

Collaborators

  • simpleimg