# small-tou/js2image

一个可以把js源代码压缩成一个ascii字符画的源代码的工具，压缩后的代码仍可运行 （A tool can compress JavaScript code to any ascii image and still run normally )

Repository: https://github.com/small-tou/js2image
Canonical: https://ross.abutalabs.com/products/js2image
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2025-10-27T05:38:01+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 49, release rhythm 35, longevity 100
- inputs: {"age_days": 3907, "days_push": 310, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1547, forks 113 (observed 2026-08-28T04:05:01.780654+00:00)

## What it is
js2image is a Node.js tool and CLI that compresses JavaScript source code into ASCII art shapes (e.g., a Christmas tree) while keeping the resulting code executable. It uses GraphicsMagick to process a source image and rewrites the JS so the code visually forms the image.

## Use cases
- compress javascript source code into an ascii art picture
- make my website's js render as a christmas tree
- obfuscate js code into a fun shape that still runs
- convert a js file into ascii art from the command line
- generate runnable ascii-art javascript via a node api

## When to choose
- you want a novelty/fun transformation of JS code into an image-shaped but runnable form
- you're on Linux or macOS and can install GraphicsMagick
- you want both a CLI and a Node.js API for the transformation

## When to avoid
- you need guaranteed production-safe minification - output is not 100% guaranteed to run
- you're on Windows, which is not supported
- you need real code obfuscation or size optimization rather than visual novelty

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: cli, developer-tools, graphics, compression
- domain: developer-tools, graphics
- platform: cli
- tags: javascript, ascii-art, code-obfuscation, novelty, graphicsmagick, command-line, nodejs, linux, macos

## Member repositories
- small-tou/js2image (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.780654+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:30.478293+00:00, confidence not recorded.
  - readme: https://github.com/small-tou/js2image (fetched 2026-08-28T04:05:01.780654+00:00, sha 17dd9c713854)
- Data as of 2026-08-30T08:39:29.467469+00:00.
