npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

micodec

v1.0.2

Published

A picture is worth a thousand words... Literally! Encoding and transfer data through images

Downloads

13

Readme

MICodec & PixelCodec.com

A picture is worth a thousand words... Literally! Encoding and transfer data through images

Encoded Quijote book

Table of Contents

Introduction

I want to introduce to you a project that I published at PixelCoded.com. It is an application that allows you to transfer data - any kind of file - as a picture. To do that, I use the "MICodec" 'codec - sold by sincrum.com - that I've created. It started with the idea of creating digital art that could contain – encoded – information about what it represents. You can see an example in the website, in which a picture of "Don Quijote" can be decoded, and becomes the whole book!

Working on the idea, I got to the point where I could encode any file to a picture, and vice-versa. This could be useful, for example, to send digital works. You could just send the picture from which the whole work could be decoded. Or be used to transfer some files that email servers usually block, or to encrypt sensitive information. More and more uses for this codec keep coming up!

Something to keep in mind is that some applications, like Whatsapp and Hangouts can "optimize" the picture files being transferred to make them smaller. This will modify the file, and the encoded information will be lost.

I invite you to test it and give your opinion and feedback at: http://pixelcodec.com

Encode a File

const PixerEncode = require("micodec").MIEncode;
var enc = new PixerEncode();

// fileToImage( file_in, file_out, friendlyname(normally same as file_in), callback)
enc.fileToImage( "file_in.xls", "file_to.png", "friendlyname.xls", function(){
	console.log( "File encoded!");
} );

Decode a File

const PixerDecode = require("micodec").MIDecode;
var dec = new PixerDecode();

// imageToFile( png_encoded_file, destination_file, callback(err, friendlyname))
dec.imageToFile( "file_to.png", "file_in.xls", (err, name)=>{
	 // name: is the friendly name specified in fileToImage
	 console.log( "File decoded. Friendly name: " + name);
});