Skip to content

imagelint/imagelint-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imagelint JS

Build Status codecov

A library to convert your image URLs to Imagelint URLs

Installation

You can add this library to your project using npm

npm install imagelint --save

Usage

Basic usage

imagelint.get('http://yoursite.com/img/cat.jpg')

The code above yields the output below:

https://a1.imagelint.com/yoursite.com/img/cat.jpg

You can also use parameters

imagelint.get('http://yoursite.com/img/cat.jpg', {'width': 200})

The code above scales the image to a width of 200px.

About

The JS library to interact with imagelint.com

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published