{"id":17888261,"url":"https://github.com/squat/acatiris","last_synced_at":"2025-04-03T02:42:48.865Z","repository":{"id":20332377,"uuid":"23606828","full_name":"squat/acatiris","owner":"squat","description":"An ASCII Art Middleware for Express","archived":false,"fork":false,"pushed_at":"2015-03-03T19:18:14.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T09:57:47.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-03T04:48:20.000Z","updated_at":"2021-03-15T22:15:02.000Z","dependencies_parsed_at":"2022-08-29T16:31:22.843Z","dependency_job_id":null,"html_url":"https://github.com/squat/acatiris","commit_stats":null,"previous_names":["lsvx/acatiris"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Facatiris","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Facatiris/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Facatiris/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squat%2Facatiris/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squat","download_url":"https://codeload.github.com/squat/acatiris/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927809,"owners_count":20856193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T13:36:56.077Z","updated_at":"2025-04-03T02:42:48.841Z","avatar_url":"https://github.com/squat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# acatiris\n\nAcatiris (pronounced a cat iris, an anagram of ASCII art), is an ASCII art middleware for Express. You can use Acatiris at the end of your application's middleware stack to convert all the images in your HTML into ASCII, or as a controller to create an ASCII art endpoint.\n\n## Installation\n\nInstall with [npm](http://npmjs.org):\n\n    $ npm install acatiris\n    \nAcatiris needs the [jp2a](http://csl.name/jp2a/) and [Imagemagick](http://www.imagemagick.org/) CLI tools installed and available on the system's $PATH in order to run.\n\nFor example:\n\n* on OS X you can install the dependencies with [Homebrew](http://brew.sh/) by running: `$ brew install jp2a imagemagick`\n* on Ubuntu/Debian you can install the dependencies with `apt-get`: `$ sudo apt-get install jp2a libmagick++-dev`\n\n## Example\n\n### Middleware\n\nTo convert the images in your application's HTML into ASCII, put Acatiris at the end of your middleware stack:\n\n````js\n// Import Acatiris.\nvar acatiris = require('acatiris');\n\n// Create a sample endpoint.\napp.get('/', function(req, res, next){\n    res.body = 'hit me up \u003ca href=\"https://twitter.com/lsvx\"\u003e@lsvx\u003c/a\u003e\u003cimg src=\"http://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png\"/\u003e';\n    next();\n});\n\napp.use(acatiris);\n\n/*\nWill output:\n \nhit me up @lsvx\n \n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n..................................................\n......................,llll.......;cooooc;........\n......................lKKKK'....l0KKKKKKKK0o......\n......................lKKKK'...oKKK0o::lOKkl'.....\n......................lKKKK'...OKKKk.....'........\n......................lKKKK'...lKKKKOo:'..........\n......................lKKKK'....:OKKKKKK0dc'......\n......................lKKKK'......,cxOKKKKK0d.....\n......................lKKKK'..........':dKKKKx....\n...............'c'....oKKKK'...,ld'......xKKKK....\n.............:OKK0dcco0KKKx...kKKK0xlcclxKKKKd....\n..............lOKKKKKKKK0o.....ckKKKKKKKKKKOc.....\n................,cloooc;..........;cloool:'.......\n..................................................\n..................................................\n*/\n````\n\n### Endpoint\n\nTo add an ASCII art endpoint to your application, simply include Acatiris like you would and controller:\n\n````js\n// Import Acatiris.\nvar acatiris = require('acatiris');\n\napp.use('/ascii', acatiris.endpoint);\n````\n\nNow, a requests to `lsvx.com/ascii/\u003curl\u003e`, such as [http://lsvx.com/ascii/http://o-dub.com/images/rapcat.jpg](http://lsvx.com/ascii/http://o-dub.com/images/rapcat.jpg) will generate something sweet.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquat%2Facatiris","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquat%2Facatiris","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquat%2Facatiris/lists"}