data-uri-snippets

1.0.0 • Public • Published

What

Dictionary of commonly-used data URIs.

How

npm install data-uri-snippets --save

Then, in your JS:

import snippets from 'data-uri-snippets'

// white 1x1 pixel
var img = new Image()
img.src = snippets.white1x1png

Values

  • white1x1 - 1x1 opaque white gif (35 bytes)
  • white1x1png - 1x1 opaque white png (67 bytes)

Sources

Readme

Keywords

none

Package Sidebar

Install

npm i data-uri-snippets

Weekly Downloads

5

Version

1.0.0

License

ISC

Last publish

Collaborators

  • sandermoolin