baboon-image-uri

1.0.1 • Public • Published

browser support

baboon-image-uri

stable

img

Baboon test image (128x128) in the form of a PNG base64-encoded Data URI string. This is useful for quick visual demos where you just want to get an image on screen via CSS or the Image object.

//gives us a string
var baboon = require('baboon-image-uri')
 
//append the image to the body when ready
var img = new Image()
img.onload = function() {
    document.body.appendChild(img)
}
img.src = baboon

Usage

NPM

Credits

Image is public domain.

Rest of module is MIT, see LICENSE.md for details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1,817
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1,817
  • 1.0.0
    1

Package Sidebar

Install

npm i baboon-image-uri

Weekly Downloads

1,818

Version

1.0.1

License

MIT

Last publish

Collaborators

  • mattdesl