{"_id":"terminal-image","_rev":"4109001","name":"terminal-image","description":"Display images in the terminal","dist-tags":{"latest":"4.2.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2026-01-23T00:51:50.000Z","created":"2018-05-08T16:26:14.814Z","4.2.0":"2026-01-04T23:02:34.013Z","4.1.0":"2025-10-19T16:27:55.852Z","4.0.0":"2025-09-11T19:22:23.139Z","3.1.1":"2025-01-03T21:59:57.965Z","3.1.0":"2025-01-03T21:50:27.625Z","3.0.0":"2024-07-26T14:06:10.361Z","2.0.0":"2021-05-03T18:35:20.178Z","1.2.1":"2020-08-11T19:03:13.062Z","1.2.0":"2020-07-18T10:35:34.636Z","1.1.0":"2020-07-03T07:25:55.530Z","1.0.1":"2020-05-12T07:58:05.190Z","1.0.0":"2020-05-10T14:39:07.428Z","0.2.0":"2019-04-29T03:37:38.115Z","0.1.2":"2018-11-30T05:21:15.768Z","0.1.1":"2018-05-09T20:05:41.758Z","0.1.0":"2018-05-08T16:26:14.814Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"versions":{"4.2.0":{"name":"terminal-image","version":"4.2.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^5.6.2","image-dimensions":"^2.5.0","jimp":"^1.6.0","log-update":"^6.1.0","render-gif":"^2.0.4","supports-terminal-graphics":"^0.1.0","term-img":"^7.0.0"},"devDependencies":{"@types/node":"^24.3.1","ava":"^6.4.1","xo":"^1.2.2"},"gitHead":"c20750c4ca7988ef821d0c67113b9c2110a1ce0a","types":"./index.d.ts","_id":"terminal-image@4.2.0","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_nodeVersion":"24.12.0","_npmVersion":"11.6.1","dist":{"shasum":"e1bc7da0974d89047672fbd4cd422d96d5650f1c","size":6505,"noattachment":false,"key":"/terminal-image/-/terminal-image-4.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-4.2.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/terminal-image_4.2.0_1767567753860_0.846250683057495"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-04T23:02:34.013Z","publish_time":1767567754013,"_source_registry_name":"default","_cnpm_publish_time":1767567754013},"4.1.0":{"name":"terminal-image","version":"4.1.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^5.6.2","image-dimensions":"^2.5.0","jimp":"^1.6.0","log-update":"^6.1.0","render-gif":"^2.0.4","term-img":"^7.0.0"},"devDependencies":{"@types/node":"^24.3.1","ava":"^6.4.1","xo":"^1.2.2"},"gitHead":"a2d012f48748d2ef01e4e927125eb4dfc18071c9","types":"./index.d.ts","_id":"terminal-image@4.1.0","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_nodeVersion":"24.9.0","_npmVersion":"11.6.1","dist":{"shasum":"a63ff67d8829b6c06904f691de2daa900599a071","size":6663,"noattachment":false,"key":"/terminal-image/-/terminal-image-4.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-4.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/terminal-image_4.1.0_1760891275654_0.48968108832846546"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-19T16:27:55.852Z","publish_time":1760891275852,"_source_registry_name":"default","_cnpm_publish_time":1760891275852},"4.0.0":{"name":"terminal-image","version":"4.0.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^5.6.2","image-dimensions":"^2.5.0","jimp":"^1.6.0","log-update":"^6.1.0","render-gif":"^2.0.4","term-img":"^7.0.0"},"devDependencies":{"@types/node":"^24.3.1","ava":"^6.4.1","xo":"^1.2.2"},"_id":"terminal-image@4.0.0","gitHead":"c3965e1b763d39e5e3381f10d2adfbfd45e8112e","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_nodeVersion":"20.19.1","_npmVersion":"10.9.2","dist":{"shasum":"414c4d27a232ccbfcc3b37a9987f3a711ea9c82f","size":6563,"noattachment":false,"key":"/terminal-image/-/terminal-image-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/terminal-image_4.0.0_1757618542944_0.5487087247370679"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-11T19:22:23.139Z","publish_time":1757618543139,"_source_registry_name":"default","_cnpm_publish_time":1757618543139},"3.1.1":{"name":"terminal-image","version":"3.1.1","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^5.4.1","image-dimensions":"^2.3.0","jimp":"^1.6.0","log-update":"^6.1.0","render-gif":"^2.0.4","term-img":"^7.0.0"},"devDependencies":{"@types/node":"^22.10.5","ava":"^6.2.0","tsd":"^0.31.2","xo":"^0.60.0"},"_id":"terminal-image@3.1.1","gitHead":"16067f9b41948a7742e5e28cb108fd86ac10b8f4","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"83912564f456827391230b410e72d147034952fe","size":4738,"noattachment":false,"key":"/terminal-image/-/terminal-image-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-3.1.1.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/terminal-image_3.1.1_1735941597790_0.8057569579799642"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-03T21:59:57.965Z","publish_time":1735941597965,"_source_registry_name":"default","_cnpm_publish_time":1735941597965},"3.1.0":{"name":"terminal-image","version":"3.1.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^5.4.1","image-dimensions":"^2.3.0","jimp":"^1.6.0","log-update":"^6.1.0","render-gif":"^2.0.4","term-img":"^7.0.0"},"devDependencies":{"@types/node":"^22.10.5","ava":"^6.2.0","tsd":"^0.31.2","xo":"^0.60.0"},"_id":"terminal-image@3.1.0","gitHead":"c310b908734588b935f4f69e118226b4802176dc","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_nodeVersion":"23.3.0","_npmVersion":"10.9.0","dist":{"shasum":"d6f59c6f0ac0f9dbf0042e7c685a59b5771430f0","size":4735,"noattachment":false,"key":"/terminal-image/-/terminal-image-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-3.1.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/terminal-image_3.1.0_1735941027434_0.30685576441219986"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-03T21:50:27.625Z","publish_time":1735941027625,"_source_registry_name":"default","_cnpm_publish_time":1735941027625},"3.0.0":{"name":"terminal-image","version":"3.0.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^5.3.0","image-dimensions":"^2.3.0","jimp":"^0.22.12","log-update":"^6.1.0","render-gif":"^2.0.4","term-img":"^7.0.0"},"devDependencies":{"@types/node":"^20.14.12","ava":"^6.1.3","tsd":"^0.31.1","xo":"^0.59.2"},"_id":"terminal-image@3.0.0","gitHead":"c0552d014ec965bc64ec0c9fc78a90d31ced62e2","types":"./index.d.ts","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_nodeVersion":"18.20.2","_npmVersion":"10.6.0","dist":{"shasum":"73e0c311a5c27fef43bd01d8de5e255828f33119","size":4770,"noattachment":false,"key":"/terminal-image/-/terminal-image-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-3.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_3.0.0_1722002770182_0.59597649583359"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-26T14:06:10.361Z","publish_time":1722002770361,"_source_registry_name":"default","_cnpm_publish_time":1722002770361},"2.0.0":{"name":"terminal-image","version":"2.0.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^4.1.1","jimp":"^0.16.1","log-update":"^4.0.0","render-gif":"^2.0.4","term-img":"^6.0.0"},"devDependencies":{"@types/node":"^15.0.1","ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"92552724fef28dbfd3a8f269fc0d6866bccfa4e3","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@2.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"shasum":"d4d80fa7ac99fcb122910dcf007234e7aa66bb77","size":4626,"noattachment":false,"key":"/terminal-image/-/terminal-image-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-2.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_2.0.0_1620066919990_0.7409746874550136"},"_hasShrinkwrap":false,"publish_time":1620066920178,"_cnpm_publish_time":1620066920178,"_cnpmcore_publish_time":"2021-12-17T13:00:07.894Z"},"1.2.1":{"name":"terminal-image","version":"1.2.1","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^4.0.0","jimp":"^0.14.0","log-update":"^4.0.0","render-gif":"^2.0.4","term-img":"^5.0.0"},"devDependencies":{"@types/node":"^13.13.5","ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"6ae0f3d914ea8c2ae7dec9a86956f759d6d72bf5","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@1.2.1","_nodeVersion":"14.5.0","_npmVersion":"6.14.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"607729829c61149c9ea27519c51498c5f26c062e","size":4739,"noattachment":false,"key":"/terminal-image/-/terminal-image-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-1.2.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_1.2.1_1597172592901_0.37350493084593195"},"_hasShrinkwrap":false,"publish_time":1597172593062,"_cnpm_publish_time":1597172593062,"_cnpmcore_publish_time":"2021-12-17T13:00:08.267Z"},"1.2.0":{"name":"terminal-image","version":"1.2.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels","gif","animation","sequence"],"dependencies":{"chalk":"^4.0.0","jimp":"^0.14.0","log-update":"^4.0.0","render-gif":"^2.0.4","term-img":"^5.0.0"},"devDependencies":{"@types/node":"^13.13.5","ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"31d085c14c4efdebf4a98e20c84a853c8d304cdc","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@1.2.0","_nodeVersion":"14.5.0","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d55ef821e980efee9b2286fbb756b00d19ff1d69","size":4748,"noattachment":false,"key":"/terminal-image/-/terminal-image-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-1.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_1.2.0_1595068534471_0.7512464747834213"},"_hasShrinkwrap":false,"publish_time":1595068534636,"_cnpm_publish_time":1595068534636,"_cnpmcore_publish_time":"2021-12-17T13:00:08.455Z"},"1.1.0":{"name":"terminal-image","version":"1.1.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"jimp":"^0.10.3","chalk":"^4.0.0","term-img":"^5.0.0"},"devDependencies":{"@types/node":"^13.13.5","ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"fd32caf7eed74850cde87e5316f706f3fc67edbe","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@1.1.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"aa5b8021d22e485feee475a8d94ea623942219b8","size":3730,"noattachment":false,"key":"/terminal-image/-/terminal-image-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_1.1.0_1593761155385_0.2637243858350218"},"_hasShrinkwrap":false,"publish_time":1593761155530,"_cnpm_publish_time":1593761155530,"_cnpmcore_publish_time":"2021-12-17T13:00:08.703Z"},"1.0.1":{"name":"terminal-image","version":"1.0.1","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"jimp":"^0.10.3","chalk":"^4.0.0","term-img":"^4.1.0"},"devDependencies":{"@types/node":"^13.13.5","ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"5884bec9a5ce1d0ce969287654ba52accb1dd620","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@1.0.1","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"73af5e11d8342341453bc6f971b2b44bef2a717a","size":3732,"noattachment":false,"key":"/terminal-image/-/terminal-image-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_1.0.1_1589270285081_0.940509200786847"},"_hasShrinkwrap":false,"publish_time":1589270285190,"_cnpm_publish_time":1589270285190,"_cnpmcore_publish_time":"2021-12-17T13:00:08.948Z"},"1.0.0":{"name":"terminal-image","version":"1.0.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"@sindresorhus/jimp":"^0.3.0","chalk":"^4.0.0","term-img":"^4.1.0"},"devDependencies":{"@types/node":"^13.13.5","ava":"^1.4.1","tsd":"^0.11.0","xo":"^0.30.0"},"gitHead":"a6126a98eda79d5079b366ad32019b55415c716a","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7eeae186e63e525e1d2264f9b6e3484cca3ae606","size":3730,"noattachment":false,"key":"/terminal-image/-/terminal-image-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_1.0.0_1589121547340_0.16790658465750252"},"_hasShrinkwrap":false,"publish_time":1589121547428,"_cnpm_publish_time":1589121547428,"_cnpmcore_publish_time":"2021-12-17T13:00:09.139Z"},"0.2.0":{"name":"terminal-image","version":"0.2.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"@sindresorhus/jimp":"^0.3.0","chalk":"^2.4.2","term-img":"^4.1.0"},"devDependencies":{"@types/node":"^11.13.8","ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"69e05179929164df1f6258542069cf219f58c395","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@0.2.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c0d94dd8eba295c22ba79cafbaef1c6914a4b81e","size":2536,"noattachment":false,"key":"/terminal-image/-/terminal-image-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-0.2.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_0.2.0_1556509058014_0.17516971112725033"},"_hasShrinkwrap":false,"publish_time":1556509058115,"_cnpm_publish_time":1556509058115,"_cnpmcore_publish_time":"2021-12-17T13:00:09.355Z"},"0.1.2":{"name":"terminal-image","version":"0.1.2","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"@sindresorhus/jimp":"^0.3.0","chalk":"^2.4.1","term-img":"^3.0.0"},"devDependencies":{"ava":"^0.25.0","xo":"^0.23.0"},"gitHead":"b34e5802c04b64223cf4515f34d1b88a6d45d0da","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@0.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"38cbb56f0c08da56b4751646938df39add50cddd","size":2340,"noattachment":false,"key":"/terminal-image/-/terminal-image-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-0.1.2.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_0.1.2_1543555275629_0.06713305225511812"},"_hasShrinkwrap":false,"publish_time":1543555275768,"_cnpm_publish_time":1543555275768,"_cnpmcore_publish_time":"2021-12-17T13:00:09.582Z"},"0.1.1":{"name":"terminal-image","version":"0.1.1","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"@sindresorhus/jimp":"^0.3.0","chalk":"^2.4.1","term-img":"^2.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"a659386d84576c645c69fb43e3517d4030223d66","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@0.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"eb345c1946a0163909cd725f5c741692d2f7f16e","size":2265,"noattachment":false,"key":"/terminal-image/-/terminal-image-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-0.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_0.1.1_1525896341570_0.8039873391676293"},"_hasShrinkwrap":false,"publish_time":1525896341758,"_cnpm_publish_time":1525896341758,"_cnpmcore_publish_time":"2021-12-17T13:00:09.768Z"},"0.1.0":{"name":"terminal-image","version":"0.1.0","description":"Display images in the terminal","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/terminal-image.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["terminal","image","term","iterm","shell","console","command-line","img","pic","picture","photo","ansi","escape","jpg","jpeg","display","show","pixels"],"dependencies":{"chalk":"^2.4.1","jimp":"^0.2.28","term-img":"^2.1.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"781328ab91c372b734f3d48169ae5fabb4a29ed9","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"homepage":"https://github.com/sindresorhus/terminal-image#readme","_id":"terminal-image@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"be59bc802b74ab632bac0a38d3b76b5e70a32646","size":2259,"noattachment":false,"key":"/terminal-image/-/terminal-image-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/terminal-image/download/terminal-image-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/terminal-image_0.1.0_1525796774768_0.08710619416951215"},"_hasShrinkwrap":false,"publish_time":1525796774814,"_cnpm_publish_time":1525796774814,"_cnpmcore_publish_time":"2021-12-17T13:00:09.969Z"}},"readme":"# terminal-image\n\n> Display images in the terminal\n\nWorks in any terminal that supports colors.\n\n<img src=\"screenshot.png\" width=\"1082\">\n\n*In iTerm, Kitty, WezTerm, and other terminals with graphics support, the image will be displayed in full resolution. In other terminals, it will be rendered using ANSI block characters.*\n\n## Install\n\n```sh\nnpm install terminal-image\n```\n\n## Usage\n\n```js\nimport terminalImage from 'terminal-image';\n\nconsole.log(await terminalImage.file('unicorn.jpg'));\n```\n\nOptionally, you can specify the `height` and/or `width` to scale the image. That can be either the percentage of the terminal window or number of rows and/or columns. Please note that the image will always be scaled to fit the size of the terminal. If width and height are not defined, by default the image will take the width and height of the terminal.\n\nIt is recommended to use the percentage option.\n\n```js\nimport terminalImage from 'terminal-image';\n\nconsole.log(await terminalImage.file('unicorn.jpg', {width: '50%', height: '50%'}));\n```\n\nYou can set width and/or height as columns and/or rows of the terminal window as well.\n\n```js\nimport terminalImage from 'terminal-image';\n\nconsole.log(await terminalImage.file('unicorn.jpg', {width: 50}));\n```\n\nBy default, aspect ratio is always maintained. If you don't want to maintain aspect ratio, set `preserveAspectRatio` to false. However, your image will be scaled to fit the size of the terminal.\n\n```js\nimport terminalImage from 'terminal-image';\n\nconsole.log(await terminalImage.file('unicorn.jpg', {width: 70, height: 50, preserveAspectRatio: false}));\n```\n\n## API\n\nSupports PNG and JPEG images. Animated GIFs are also supported with `.gifBuffer` and `.gifFile`.\n\n### terminalImage.buffer(imageBuffer, options?)\n### terminalImage.file(filePath, options?)\n\nReturns a `Promise<string>` with the ANSI escape codes to display the image.\n\n### terminalImage.gifBuffer(imageBuffer, options?)\n### terminalImage.gifFile(filePath, options?)\n\nReturns a function that can be called to stop the GIF animation.\n\n#### options\n\nType: `object`\n\n##### height\n\nType: `string | number`\n\nCustom image height.\n\nCan be set as percentage or number of rows of the terminal. It is recommended to use the percentage options.\n\n##### width\n\nType: `string | number`\n\nCustom image width.\n\nCan be set as percentage or number of columns of the terminal. It is recommended to use the percentage options.\n\n##### preserveAspectRatio\n\nType: `boolean`\\\nDefault: `true`\n\nWhether to maintain image aspect ratio or not.\n\n##### preferNativeRender\n\nType: `boolean`\\\nDefault: `true`\n\nPrefer native terminal image protocols when available; set to false to force ANSI rendering.\n\n##### maximumFrameRate\n\n**Only works for `terminalImage.gifBuffer` or `terminalImage.gifFile`**\n\nType: `number`\\\nDefault: `30`\n\nMaximum framerate to render the GIF. This option is ignored when using iTerm.\n\n##### renderFrame\n\n**Only works for `terminalImage.gifBuffer` or `terminalImage.gifFile`**\n\nType: `(text: string) => void`\\\nDefault: [log-update](https://github.com/sindresorhus/log-update)\n\nCustom handler which is run for each frame of the GIF.\n\nThis can be set to change how each frame is shown.\n\n##### renderFrame.done\n\n**Only works for `terminalImage.gifBuffer` or `terminalImage.gifFile`**\n\nType: `() => void`\\\nDefault: [log-update](https://github.com/sindresorhus/log-update)\n\nCustom handler which is run when the animation playback is stopped.\n\nThis can be set to perform a cleanup when playback has finished.\n\n## Terminal Protocol Support\n\nIt automatically detects and uses the best available protocol:\n\n1. **Kitty Graphics Protocol** - Full resolution support in Kitty, Konsole, WezTerm (when configured)\n1. **iTerm2 Inline Images Protocol** - Full resolution support in iTerm2 and compatible terminals\n1. **ANSI Block Characters** - Universal fallback using Unicode half-blocks with 24-bit color\n\n## Tip\n\n### Display a remote image\n\n```js\nimport terminalImage from 'terminal-image';\nimport got from 'got';\n\nconst body = await got('https://sindresorhus.com/unicorn').buffer();\nconsole.log(await terminalImage.buffer(body));\n```\n\n## Related\n\n- [terminal-image-cli](https://github.com/sindresorhus/terminal-image-cli) - CLI for this module\n- [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal\n- [chalk](https://github.com/chalk/chalk) - Style and color text in the terminal\n","_attachments":{},"homepage":"https://github.com/sindresorhus/terminal-image#readme","bugs":{"url":"https://github.com/sindresorhus/terminal-image/issues"},"license":"MIT"}