{"id":21828991,"url":"https://github.com/zcfan/image-ascii-loader","last_synced_at":"2026-05-03T10:36:15.087Z","repository":{"id":39262622,"uuid":"234024368","full_name":"zcfan/image-ascii-loader","owner":"zcfan","description":"A webpack loader that load image as ascii text.","archived":false,"fork":false,"pushed_at":"2023-01-07T13:45:13.000Z","size":884,"stargazers_count":1,"open_issues_count":28,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-10T02:15:47.128Z","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/zcfan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-15T07:33:49.000Z","updated_at":"2023-01-31T17:50:12.000Z","dependencies_parsed_at":"2023-02-07T08:17:46.802Z","dependency_job_id":null,"html_url":"https://github.com/zcfan/image-ascii-loader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zcfan/image-ascii-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcfan%2Fimage-ascii-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcfan%2Fimage-ascii-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcfan%2Fimage-ascii-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcfan%2Fimage-ascii-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zcfan","download_url":"https://codeload.github.com/zcfan/image-ascii-loader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zcfan%2Fimage-ascii-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32566444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"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":[],"created_at":"2024-11-27T18:19:45.010Z","updated_at":"2026-05-03T10:36:15.052Z","avatar_url":"https://github.com/zcfan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# image-ascii-loader\nA webpack loader that load image as ascii text.\n\n## Demo\n\nGenerate this\n\n![demo](https://github.com/zcfan/image-ascii-loader/raw/master/doc/demo.png)\n\nfrom\n\n![demo](https://github.com/zcfan/image-ascii-loader/raw/master/demo/demo.jpg)\n\nfeel free to clone and play with demo project.\n\n## Guide\n\n```bash\nnpm i -D image-ascii-loader\n```\n\nthen edit your `webpack.config.js` .\n\n```javascript\nmodule.exports = {\n  // ...\n  module: {\n    rules: [\n      {\n        test: /\\.jpe?g$/,\n        use: [\"image-ascii-loader\"]\n      }\n    ]\n  },\n};\n```\n\nWith this config, all your jpeg file will be tranform to string, usually this is not what you want. You can skip configuration and do this instead:\n\n```javascript\nconst ascii = require('image-ascii-loader!./demo.jpg');\n\ndocument.getElementById('demo').innerHTML = ascii;\n```\n\nYou can specify options use resourceQuery:\n\n```javascript\n// 100 characters per line \nconst ascii = require('./demo.jpg?width=100');\n\n// use other characters to draw the image\nconst ascii = require('./demo.jpg?alphabet=blocks');\n```\n\ncheck [ascii-art-image](https://www.npmjs.com/package/ascii-art-image) for more options.\n\n## More\n\n![I like this one](https://github.com/zcfan/image-ascii-loader/raw/master/doc/demo1.png)\n\nImage source: readme of https://github.com/khrome/ascii-art project","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcfan%2Fimage-ascii-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzcfan%2Fimage-ascii-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzcfan%2Fimage-ascii-loader/lists"}