npm.io
1.0.3 • Published 9 years ago

test-image

Licence
MIT
Version
1.0.3
Deps
0
Vulns
0
Weekly
0

test-image

A standard image to test requests with

Installation

npm install test-image

Usage Example

const image = require('test-image')

console.log(image) // http://imgur.com/a/EXsAJ

fetch(image)
.then(response => response.blob())
.then((myBlob) => {
	const img = document.querySelector('img')
	img.src = URL.createObjectURL(myBlob)
})

Keywords