code.pablomurad.com

htmlansi

Converts images to CP437 ANSI art, as HTML or .ans

package.json raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  "name": "htmlansi",
  "version": "0.0.1",
  "description": "Convert images to colorful CP437 ANSI art (HTML and .ans)",
  "author": "Pablo Murad <pablomurad@pm.me>",
  "type": "module",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "bin": {
    "htmlansi": "dist/cli.js"
  },
  "scripts": {
    "build": "tsc",
    "dev": "tsc --watch",
    "convert": "node dist/cli.js",
    "test": "vitest run",
    "test:watch": "vitest"
  },
  "keywords": [
    "ansi",
    "ansi-art",
    "image",
    "converter",
    "cp437",
    "terminal",
    "bbs",
    "sauce",
    "chafa"
  ],
  "license": "MIT",
  "homepage": "https://runv.sh",
  "dependencies": {
    "sharp": "^0.34.1",
    "cac": "^6.7.14"
  },
  "devDependencies": {
    "@types/node": "^22.13.10",
    "typescript": "^5.8.2",
    "vitest": "^3.0.8"
  },
  "engines": {
    "node": ">=20"
  },
  "files": ["dist", "README.md"]
}