npm promulgates marsupials
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

cdnvision

0.1.8 • Public • Published

CDN Vision

Resize, crop, and process images in the cloud, simply by changing their URLs.

NPM version

Install

npm install cdnvision

Support us

Star this project on GitHub.

Usage

Basic example

import CDNVision from 'cdnvision';
 
const client = new CDNVision({
  name: 'your-name',
});
 
const url = client.getImageURL({
  path: 'https://upload.wikimedia.org/wikipedia/commons/3/36/Cirrus_sky_panorama.jpg',
  width: 300,
});
 
/* equals http://image.cdnvision.com/your-name/https://upload.wikimedia.org/wikipedia/commons/3/36/Cirrus_sky_panorama.jpg?width=300
*/
```

install

npm i cdnvision

Downloadsweekly downloads

0

version

0.1.8

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability