/get-image

A simple module that creates a preloaded <img> for a given src.

Primary LanguageJavaScript

get-image

get-image is a simple module that creates a preloaded <img> for a given src.

Build status

Browser support

Install

$ npm install get-image

Usage

Browser & Server

var image = require('get-image')

image('./image.jpg', function(error, img) {
  document.body.appendChild(img)
})

License

MIT