Skip to content

bberak/ndpack-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ndpack-image

Unpacks a base64 encoded string PNG. This is used for creating require-able images.

Usage

First, take your image and pack it into a module:

ndpack-image test.img > test.js

Then load the test image:

var myimage = require("./test.js")

If you want to publish your image on npm, be sure to add ndpack-image as a dependency.

Install

npm install ndpack-image

Credits

(c) 2014 Mikola Lysenko. MIT License

About

Package an image into a requireable module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%