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

f2i

v1.0.0

Published

Converts text to image

Downloads

37

Readme

F2I 1.0.0 · GitHub license npm version

File to image utility


Idea

Right now (version 0.1.0) you can only converts text to image and back again, but application contains the very simple algorithm that allows encoding files in the future. I want to realize the system like "Path to Image", what about store and share your projects in images? Sounds interesting. Ok go...

How to use?

Installation:

Do installation only global

yarn global add f2i

Encode and decode

Run f2i in the terminal and use UI application. Cli version right now in progress.


API

Recommended to use f2i.core package

You can import library to create your own projects. Just import f2i.core

import F2I from "f2i.core";

(You should install it manually with yarn add f2i.core)

Text -> Image

F2I.textToImage( text ).then( image => image.write( path ));
  • Param text - this is the text to encode
  • Param path - this is the path where image will be saved

Image -> Text

F2I.imagePathToText( path ).then(text => console.log(text));
  • Param path - this is the path to your png image file

This function returns the Promis<string>.


UI Screen

  • Save image - Saves image as file (with your text)
  • Load image - Loads image and decode the text from it

(PS: Image seems not good in the application, it's cuz of the small size of the image)