Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/ndpack-image
Package an image into a requireable module
https://github.com/mikolalysenko/ndpack-image
Last synced: about 2 months ago
JSON representation
Package an image into a requireable module
- Host: GitHub
- URL: https://github.com/mikolalysenko/ndpack-image
- Owner: mikolalysenko
- License: mit
- Created: 2014-05-22T11:56:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T07:41:59.000Z (over 7 years ago)
- Last Synced: 2024-10-20T14:27:46.173Z (2 months ago)
- Language: JavaScript
- Size: 1.29 MB
- Stars: 19
- Watchers: 6
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```javascript
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