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 🙏

© 2025 – Pkg Stats / Ryan Hefner

nameco

v1.1.0

Published

Nameco technology implementation on node

Readme

Nameco.js
Node.js Package

Overview


A Javascript Library to embed text data into any image file. You can embed data with just few code (like below!) .


var Img= new Image();
Img.src="Example.png";

var Obj=new Nameco();
Obj.Text="foo";//Set your data as string.
Obj.Base=Img; //Nameco.js writes your data into this.

var DataUrl=Obj.Encode();
//You can get DataUrl of image that embeded your data.

Features


  • Embed your string data into image. : Nameco.Encode();

  • Decode your image that was encoded by Nameco.js.:Nameco.Decode();

VS.-- Why Nameco?


In the data-hiding subject, There are a lot of way to embed your data into image file. For example,steganography or QR code .But Nameco was born. Why? Because Nameco is good at some points like below.

  • Non limited data size
  • Infinity pattern writing paramater
  • Cross platform
  • 2ch data writing---You can embed two of your data to one image.

Requirement


Nameco needs just below only.

  • HTML5
  • JavaScript

Usage


Encode

You can encode like below. Please change each parameter to you needed.


var Img= new Image();
Img.src="Example.png";

var Obj=new Nameco();
Obj.Mode = 0;
Obj.Base=Img; //Nameco.js writes your data into this.
Obj.StrFlg = true;
Obj.Text="foo";//Set your data as string.

var DataUrl=Obj.Encode();
//You can get DataUrl of image that embeded your data.

Paramaters

|Name| Value type |Decsription | |-------|-------------|------------------| |Mode| integer(0 to 3) |Color chanel mode. Nameco writes .Text to selected chanel of .Base. Color chanel is 0: Red , 1: Green, 2:Blue,3:Alpha| |Base| image object| Nameco writes .Text to this.| |StrFlg|true/false|True : Do UTF16 like encoding before embed. False: Don't do.| |Text| String | Your data as string. Nameco writes this to .Base |

  • After running .Encode() method, DataURL is saved in .DataURL.

Decode

You can decode like below. Please change each parameter to you needed.


var Img= new Image();
Img.src="Embeded.png";

var Obj=new Nameco();
Obj.Mode = 0;
Obj.Img=Img; 
Obj.StrFlg = true;
var Text=Obj.Decode();//Text is gotten in here.

Paramaters

|Name| Value type |Decsription | |-------|-------------|------------------| |Mode| integer(0 to 3) |Color chanel mode. Nameco reads .Text from selected chanel of .Img. Color chanel is 0: Red , 1: Green, 2:Blue,3:Alpha| |Img| image object| Nameco decodes data from this.| |StrFlg|true/false|True : Do UTF16 like decoding after decode. False: Don't do.|

  • After running .Decode() method, Data(as Text) is saved in .Text.

Advanced

Paramater .ColorPlatet is a little difficult to use paramater,but very powerful one. Nameco repraces each character to color number. ColorPalet decides the color number of each character. So If you use this paramater well,you can encrypt your data.

You would like to use Nameco?


You have to do just 2 thing. 1st, please upload and include Nameco.js to HTML . 2nd,please write (c) 2017 Yusei Ito --Nameco.js in your application's credit .

Contribution


Please send me pull request.

Author-Yusei Ito


Licence

MIT. See LICENCE.