{"_id":"img","_rev":"22-470fa43563f3a24dfa21bf2d94672a7f","name":"img","time":{"modified":"2022-06-19T00:42:18.286Z","created":"2014-06-23T19:59:54.924Z","0.0.0":"2014-06-23T19:59:54.924Z","0.0.1":"2014-06-23T20:28:34.693Z","1.0.0":"2014-10-25T23:17:09.985Z","3.0.0":"2016-03-22T23:25:31.437Z","3.0.1":"2016-03-23T00:01:56.435Z","3.0.2":"2016-03-23T05:16:14.546Z","0.0.1-security":"2016-03-23T22:09:50.419Z","3.0.3":"2016-03-25T16:17:13.946Z"},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"dist-tags":{"latest":"3.0.3"},"readme":"Convert any dom tree to an image element.\n\n```\nconst img = require('img');\n\n// create a rendered image of the DOM element with id 'my-element' and attach it to the end of the document\nimg($('#my-element')[0], function(img) {\n  document.body.appendChild(img);\n});\n\n// create a rendered <h1> as an image and open the result in a new window\nimg($('<h1>Please render this heading</h1>')[0], function(img) {\n  window.open(img.src, '_blank');\n});\n```\n","versions":{"3.0.0":{"name":"img","version":"3.0.0","description":"","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"author":{"name":"a@modules.io"},"license":"ISC","_id":"img@3.0.0","_shasum":"0a28b72eb5f4fffb7b6f3a8383b313b66476d2e7","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"kazmer","email":"ultimus@gmail.com"},"dist":{"shasum":"0a28b72eb5f4fffb7b6f3a8383b313b66476d2e7","tarball":"https://registry.npmjs.org/img/-/img-3.0.0.tgz","integrity":"sha512-AJLwxswyzbZ95WCaHHVcFkP0Iec2W6FCJ5lgCoBkEo+W+BRmvaCyGq6PmPWQDyqHqeW98oxzdzhHXodFhVPPFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5w9/06c6kcL2YCMTNGRnJiaCSZTJBTflyEEBqgGmXyQIhAOiz1UpWo5MepNw8NMgibBpNZCtrvfUdC8fQIXl0s6ch"}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}},"3.0.1":{"_args":[["img","/tmp"]],"_from":".","_id":"img@3.0.1","_inCache":true,"_installable":true,"_location":"/img","_nodeVersion":"5.7.0","_npmUser":{"name":"kazmer","email":"ultimus@gmail.com"},"_npmVersion":"3.7.5","_phantomChildren":{},"_requested":{"name":"img","raw":"img","rawSpec":"","scope":null,"spec":"latest","type":"tag"},"_requiredBy":["#USER"],"_shasum":"200a6954260db0b1a061286f799c13d4555cae0d","_shrinkwrap":null,"_spec":"img","_where":"/tmp","author":{"name":"a@modules.io"},"dependencies":{},"devDependencies":{},"directories":{},"dist":{"shasum":"200a6954260db0b1a061286f799c13d4555cae0d","tarball":"https://registry.npmjs.org/img/-/img-3.0.1.tgz","integrity":"sha512-71yxaBIz6QxiuOO/lRzwKP9F9+WIkEGYqKEmOihEt3OT47AqPCHZQ/8aHcoGE+RM+D2leGIDausenxMQlWGWvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3GXBmkJAUueJNpVknC6J9M5Jo/Qzn+0LfJo/1Cfp1jAiAwMKYeOCJMeLoJBQCjcXHELdsOS1q+Am2jP00kawJ4BQ=="}]},"license":"ISC","main":"index.js","maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"name":"img","optionalDependencies":{},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"version":"3.0.1"},"3.0.2":{"name":"img","version":"3.0.2","description":"Convert any dom tree to an image element","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/modulesio/img.git"},"keywords":["image","element","dom","tree","render","canvas"],"author":{"name":"a@modules.io"},"license":"ISC","bugs":{"url":"https://github.com/modulesio/img/issues"},"homepage":"https://github.com/modulesio/img#readme","gitHead":"cec395007b1b7dd759cbd0f721109f2b50360195","_id":"img@3.0.2","_shasum":"34bcf08d8920067e9348dbef47bc612097763ed0","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"kazmer","email":"ultimus@gmail.com"},"dist":{"shasum":"34bcf08d8920067e9348dbef47bc612097763ed0","tarball":"https://registry.npmjs.org/img/-/img-3.0.2.tgz","integrity":"sha512-RhTm8CvK0+Jg14MBh1vodODtyvnjtJZEJ7AquyrT9zreafpOIAnJoMz4bR7xKx7M2kPxWq2jJJUtKl0kRtcE7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWdKUcJSZkJHw5KwaeQpy6yyIjLkECcPefDVmC2nxG3QIgH3OiXP3Hw5CsbjIQ+jgDT4rKp/3FZ4N4Kp9uIEM8iMY="}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}},"0.0.1-security":{"name":"img","version":"0.0.1-security","description":"This package name is not currently in use, but was formerly occupied by a popular package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/npm/security-holder.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/npm/security-holder/issues"},"homepage":"https://github.com/npm/security-holder#readme","gitHead":"d1719e2a152734ed854065de56039770c9104d83","_id":"img@0.0.1-security","_shasum":"4acb2b3db1c64b42afb4dea5acef910b372f69b0","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.1.0","_npmUser":{"name":"npm","email":"npm@npmjs.com"},"dist":{"shasum":"4acb2b3db1c64b42afb4dea5acef910b372f69b0","tarball":"https://registry.npmjs.org/img/-/img-0.0.1-security.tgz","integrity":"sha512-/SJogimVixTxOQts7abWsCekvPI8eUkjeYthUqpjNZTb3UBgsIY6ffK7SxWPK8AokDwZh9hAbWzdOxamIp3eow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWHSwziXB8yH1wIQNEOBmf8G4hxLivMEX/Fh3OCVxOrAiB7AD/XdxVSG2bm6sfr5kXKOCjb70eG1rdrkWho7xT2RQ=="}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}},"3.0.3":{"name":"img","version":"3.0.3","description":"Convert any dom tree to an image element","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/modulesio/img.git"},"keywords":["image","element","dom","tree","render","canvas"],"author":{"name":"a@modules.io"},"license":"ISC","bugs":{"url":"https://github.com/modulesio/img/issues"},"homepage":"https://github.com/modulesio/img#readme","gitHead":"9267b0aa74156ba0ba39e306b37bc4948e25dcc9","_id":"img@3.0.3","_shasum":"9650f00b43d52c4d330f074094a007b061acf3d4","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"kazmer","email":"ultimus@gmail.com"},"dist":{"shasum":"9650f00b43d52c4d330f074094a007b061acf3d4","tarball":"https://registry.npmjs.org/img/-/img-3.0.3.tgz","integrity":"sha512-+JmjCiDWBFyxwAZGKpNhgnpfM/AoFqLgl5SYRARp3q35uiQTWrP/iPQMJveiqhq0D5xhZDWOT17IE6TG5l4MWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDfu1YskYUGFteJvRIdkB3uZkyhqAHL/8HLj582VwwfnAiAnDbSQQdYkHXEj0ZGtEYaiyzYf7ir2ufM7sm8Gcmq6UQ=="}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}},"0.0.0":{"name":"img","version":"0.0.0","description":"Create IMG element","main":"index.js","scripts":{"test":"node test -b -l chrome -e -q"},"keywords":["img","dom","browser","browserify","image","picture"],"repository":{"url":"git@github.com:npm-dom/img.git","type":"git"},"author":"azer","license":"BSD","devDependencies":{"prova":"^1.12.1"},"_id":"img@0.0.0","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"2180b378772f0853edb7a229055a66a6ad9ca78d","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"2180b378772f0853edb7a229055a66a6ad9ca78d","tarball":"https://registry.npmjs.org/img/-/img-0.0.0.tgz","integrity":"sha512-ux3ZxJZ+tvlt6rqWnOAMLP/LnirCuXsQjMagARZDKutguyp6hKkTJX3FkYjcBPSa4pd5JGwmzON5WZP8XhrS7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDtVuIeVGpPNkR2pwEU3EHhvWJwWRKNqKAlYgEqQrUuWwIhAPXKUuY1p1I4OvanjvXzYYPJNlgavR55iQrHKJN4EoJb"}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}},"0.0.1":{"name":"img","version":"0.0.1","description":"Create IMG element","main":"index.js","scripts":{"test":"node test -b -l chrome -e -q"},"keywords":["img","dom","browser","browserify","image","picture"],"repository":{"url":"git@github.com:npm-dom/img.git","type":"git"},"author":"azer","license":"BSD","devDependencies":{"prova":"^1.12.1"},"_id":"img@0.0.1","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"bedf3bbfbe2360dbad154522b38be66f4acc6662","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"bedf3bbfbe2360dbad154522b38be66f4acc6662","tarball":"https://registry.npmjs.org/img/-/img-0.0.1.tgz","integrity":"sha512-nNhmrssDL59SoELu78SbjmrXFUBkWSzl8wpVjpb+asR/Z0UFQ6dvfTrCK+W+DpprgrHQ+FXrfcXed4bluAczfQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiF4ObeTnveRddT0JVjljz9wyBIMHG5+eo54Ijnla9bAIhAOS35re+SJdNqDhrBRNlzqTivYI/GhMN8Qx8JcPV/3rs"}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}},"1.0.0":{"name":"img","version":"1.0.0","description":"Create IMG element","main":"index.js","scripts":{"test":"node test -b -l chrome -e -q"},"keywords":["img","dom","browser","browserify","image","picture"],"repository":{"url":"git@github.com:npm-dom/img.git","type":"git"},"author":"azer","license":"BSD","devDependencies":{"baboon-image-uri":"^1.0.1","prova":"^1.12.1"},"_id":"img@1.0.0","_npmVersion":"0.0.0-fake","_nodeVersion":"0.0.0-fake","_shasum":"b2831dbb87c1a484abc096f2a8360db1f8055996","_npmUser":{"name":"npm","email":"support@npmjs.com"},"_from":".","dist":{"shasum":"b2831dbb87c1a484abc096f2a8360db1f8055996","tarball":"https://registry.npmjs.org/img/-/img-1.0.0.tgz","integrity":"sha512-y68ot8pPa+BWzF/IIU0bkeudKIRVtnnN5yVE0WdEmVOxY3glwK29pG21J0JIr2tRQpqIMToOpmGpmrTaaEsrvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8cjJHzA3LttUN06jTk2YTWQd3xsbB+fq0tpn2eQtlzwIhAP4+s9LWpfKEIggg0Q7i/T4G8LPzS+09RY4vYMyYi2CL"}]},"maintainers":[{"name":"kazmer","email":"ultimus@gmail.com"}],"directories":{}}},"license":"ISC","readmeFilename":"README.md","description":"Convert any dom tree to an image element","homepage":"https://github.com/modulesio/img#readme","keywords":["image","element","dom","tree","render","canvas"],"repository":{"type":"git","url":"git+https://github.com/modulesio/img.git"},"bugs":{"url":"https://github.com/modulesio/img/issues"},"users":{},"author":{"name":"a@modules.io"}}