{"id":43578680,"url":"https://github.com/pelmers/makejs.art","last_synced_at":"2026-02-03T23:34:14.401Z","repository":{"id":62966972,"uuid":"392495283","full_name":"pelmers/makejs.art","owner":"pelmers","description":"JavaScript formatter that turns code into ascii art","archived":false,"fork":false,"pushed_at":"2024-08-23T05:17:16.000Z","size":17147,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"gh-pages","last_synced_at":"2025-10-23T14:02:57.921Z","etag":null,"topics":["ascii-art","formatter","javascript","perception","typescript","webpack-plugin"],"latest_commit_sha":null,"homepage":"https://makejsart.pelmers.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pelmers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-04T00:26:25.000Z","updated_at":"2024-08-23T05:17:19.000Z","dependencies_parsed_at":"2024-10-30T02:54:07.393Z","dependency_job_id":null,"html_url":"https://github.com/pelmers/makejs.art","commit_stats":{"total_commits":76,"total_committers":1,"mean_commits":76.0,"dds":0.0,"last_synced_commit":"74ce3058059b6b23d0f0602888ae1efa8f3330c8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pelmers/makejs.art","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelmers%2Fmakejs.art","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelmers%2Fmakejs.art/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelmers%2Fmakejs.art/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelmers%2Fmakejs.art/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pelmers","download_url":"https://codeload.github.com/pelmers/makejs.art/tar.gz/refs/heads/gh-pages","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pelmers%2Fmakejs.art/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29061658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T23:14:54.203Z","status":"ssl_error","status_checked_at":"2026-02-03T23:14:50.873Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["ascii-art","formatter","javascript","perception","typescript","webpack-plugin"],"created_at":"2026-02-03T23:34:13.789Z","updated_at":"2026-02-03T23:34:14.394Z","avatar_url":"https://github.com/pelmers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Make JS Art](https://makejsart.pelmers.com/)\n\nJavaScript formatter (I guess?) that turns your code into (executable!) ascii\nart in the form of a picture.\n\n**Example:**\n![](example.gif)\n\n**[Try it out!](https://makejsart.pelmers.com/)**\n\nWorks best with images that have a well-defined subject.\n\n### Develop\n\n```\ngit submodule init\ngit submodule update\nyarn\nyarn build\nyarn jest\n```\n\n### More Details\n\nI have published a [blog post](https://pelmers.com/making-javascript-art/) on this project.\n\n### [Node API](https://www.npmjs.com/package/makejs.art)\n\nNow you can also use this as a node module to programmatically turn your code into ascii art!\nThis will use the node-canvas library to render the provided image to an invisible buffer.\n\n**Install**:\n\n```\nnpm install makejs.art\nOR\nyarn add makejs.art\n```\n\n**Usage**:\n\n```js\nimport { makeJsArt } from 'makejs.art';\n\nconst source = `\n  const a = 1;\n  const b = 2;\n  const c = a + b;\n  console.log(c);\n`;\n\nconst art = await makeJsArt(source, {\n    imagePath: 'path/to/image.png',\n    mode: 'intensity',\n    cutoff: 0.5,\n    invert: false,\n});\n```\n\n### Webpack Plugin API\n\nThis project uses its own webpack plugin to ascii artify itself!\nSee an example output at [index.js](/dist/index.js).\n\n**Install**:\n\n```\nnpm install makejs.art\nOR\nyarn add makejs.art\n```\n\n**Usage**:\nIn `webpack.config.js`:\n\n```js\nconst { MakeJsArtWebpackPlugin } = require('makejs.art');\nmodule.exports = {\n    ...\n    plugins: [\n        new MakeJsArtWebpackPlugin({\n            /* path to an image on disk to use as base of artwork */\n            imagePath: 'path/to/image.png',\n            /* mode = intensity | saliency */\n            mode: 'intensity',\n            /* cutoff = 0.0 - 1.0 */\n            cutoff: 0.5,\n            /* invert = true | false */\n            invert: false,\n            /* ignorePatterns = [string | RegExp], if empty all .js assets are modified */\n            ignorePatterns: [/vendors-.*/],\n        }),\n    ],\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelmers%2Fmakejs.art","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpelmers%2Fmakejs.art","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpelmers%2Fmakejs.art/lists"}