{"_id":"thumbsupply","_rev":"8-d935cad3d7d65fbff9bf4b51734e5aa5","name":"thumbsupply","description":"Asynchronous thumbnail supplier with caching for Node.js","dist-tags":{"latest":"0.4.0"},"versions":{"0.0.1":{"name":"thumbsupply","version":"0.0.1","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.2","lodash":"^4.17.4"},"devDependencies":{},"gitHead":"2ae03f6f2b30da3417113db57769a79a9d7f68d7","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.0.1","_npmVersion":"5.4.2","_nodeVersion":"6.10.2","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-O2/xI3nyX2kKtVPmpX8jM3yEVWGmbJjJ3c72K8mv2FWk+WFoL6+DSulynMTr63hX5ZgVTOe1+QHncFxuEnQnIA==","shasum":"dc95a567fe791ccaf5c4d12a4df594624af2f067","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiBCsDPSeWeDNcjs4BmHszsDo/tzFMCHycAGmjkQFGsQIgfuCOQUtrBk9AO2xL9kdQzFa99nhW/OPUZwLgEesDi4g="}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply-0.0.1.tgz_1505683645262_0.9254561653360724"},"directories":{}},"0.1.0":{"name":"thumbsupply","version":"0.1.0","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.2","lodash":"^4.17.4"},"devDependencies":{},"gitHead":"8bd7ee4269640be64bc38f5c2efb482ec6d48043","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.1.0","_npmVersion":"5.4.2","_nodeVersion":"6.10.2","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-EaPb2lc1zeI3yVSjJDZ7PCEBVsjnKhgmz7rY2xyBqBBpQwhv3n6mORm2/Kc1sEu+eddEKZ7xLnkjCRgFzvYSjg==","shasum":"2fee59377289a5900dbcd09d62776217aa2ff0e8","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNUqvMWastWKy38oClXfOg9C8GQW597LiOd3Uq8KNPuAiB7fkjyoVnxYy6T293LzPsCQyr1FBYTuuaf3ECimCAvxA=="}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply-0.1.0.tgz_1505987409088_0.6731257771607488"},"directories":{}},"0.1.1":{"name":"thumbsupply","version":"0.1.1","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.2","lodash":"^4.17.4"},"devDependencies":{},"gitHead":"f970c9dd6a8efe7e2377242bc539d4b97c8f78e2","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.1.1","_npmVersion":"5.4.2","_nodeVersion":"6.10.2","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-huSvDjJWIMwW9rbmDQI7zajMc16jMlmJeBN+K+T1gsCP5Jzndlln/gXAXORps4y9Zs+ak4gXWg/slIYmEIBXFQ==","shasum":"6172b6d2b5977e0bd718df47462ad263a9b68974","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGeCj46U5ycj400S0sXQmL11QXoHxxigofIeOBeepkddAiEArQgjMTW6kzeBMz9JCdpUghnordH2RrVFWq+a1yA8f3s="}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply-0.1.1.tgz_1506163276105_0.08332045958377421"},"directories":{}},"0.2.0":{"name":"thumbsupply","version":"0.2.0","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha","cover":"istanbul cover _mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.2","lodash":"^4.17.4","mime-types":"^2.1.17"},"devDependencies":{"image-size":"^0.6.1","istanbul":"^0.4.5","mocha":"^3.5.3"},"gitHead":"8a7596f54f46f50a422259c0c3bd61307c4486a5","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.2.0","_npmVersion":"5.4.2","_nodeVersion":"6.10.2","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-aPEUmCvRBvH5QtvNIneCWBvrKHDXRQ8fUW12/Kq9ABFMWSDPbrUyilzJZkmn8RE0GoEhtoZ003KQg58s4aWpbA==","shasum":"4081b3dcf9710ca9a2aa79a88e8f76df729b60ff","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC86PizpPSUpa5OoFVf7kwtMn+UybCTzidijiBBhOfVswIhAK4AMHrYKgda3TSS0rXhL/EQ1IX0Y4oeRdg25sm34Vht"}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply-0.2.0.tgz_1506946559805_0.9898684923537076"},"directories":{}},"0.2.1":{"name":"thumbsupply","version":"0.2.1","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha","cover":"istanbul cover _mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.2","lodash":"^4.17.4","mime-types":"^2.1.17"},"devDependencies":{"image-size":"^0.6.1","istanbul":"^0.4.5","mocha":"^3.5.3"},"gitHead":"c8ce3d247639c12be1e110de56c169517aea0e7c","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.2.1","_npmVersion":"5.4.2","_nodeVersion":"6.10.2","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-4sJKVH+Dit/cDKwQfCg7fh5qESAEUWs8fWuXBTbUPTfVapomUa18Yv7BGTr2eUnLn/dpwMtTRxGqhUEqdB1C1g==","shasum":"a2545839d1063e0118e9ec4fd3c042c366909a7b","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtp9G/nqMOfY4gGoZWHiMvFdgs57qJaipqcPulexnXfwIgKml/+tPub37rvQqAUtBPRBkKpUiZ7udHtJvMP3uVPXY="}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply-0.2.1.tgz_1507036442827_0.2572668606881052"},"directories":{}},"0.3.0":{"name":"thumbsupply","version":"0.3.0","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha","cover":"istanbul cover _mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.3","lodash":"^4.17.11","mime-types":"^2.1.20"},"devDependencies":{"image-size":"^0.6.3","istanbul":"^0.4.5","mocha":"^5.2.0"},"gitHead":"8297e8f75b5a702bef2af253b9dd2fa125ca4aa4","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-MNl7TyxU3YIPUERd0pStxsNN7AVOBBpHkJUEVPCvJ3mlN+TfqVTk+uDeOkpVQbNT8zOmIxk8vRcTEOeMU4/mpA==","shasum":"c2db13cf36a6f68fbfe682a5753c65c57cc82431","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.3.0.tgz","fileCount":11,"unpackedSize":1070678,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJboV+QCRA9TVsSAnZWagAAih8P/2EnLzwIW2kANx+RCCk1\nn+O/Xs13kyBbqupnRi5uSeFoyqB4fuYcqvT/q/T5xhuKfe391NwxGBelx/9v\nx961w/9HOoo11/khch5RAw1GqiHioTPz5CL8i1lmWW7i5yKp39N2kziJkVx5\nWL+VBjThPNq7Bs/whJkSz6kTgxkmlQOEORRBQ/ETYXumpPUBSTmqj5zpxK+4\nWjhQfVpp46UAnTuCP04KQTn99wm+TOt0bUQDOsjS7bQLlZQEnQdRjQkzRwo1\nCK6AuyFvi8c9Jv+9nZ5uqACsyQme/DK6o79AoDTQMymqwykzZWs1dvxghdjo\n/s+pIB71numEN9uzkR88mY/5FWX73LNBtfirqfDbJ7gSyKhHdlK1A0F0GLhr\nBinFh+w/D/G+n2MGgDQJC3XncGF6m6F3sAyaWDL4K1lhs7Bd0DnVNNVQVNJo\nM5BxHoy/RlL+CpRQvOPNt+P6qKyegyUQZeizSHXq8X5XSz1Jg344df8YsR2E\nJGAPPuzWQwMCJh82V9bxv+Ll5C8X0Mp3vly0xWsJn41e6tvwQaCenDLhRWlF\nY8sx62TVrs7N+2Grr+pqiipcy/xz9JrcIf7hxiflcN3o1AD1eRP5nZBxmwUy\n+oI6b1BVFdBlaV6ZO9o5BqE48fDoxHqimoFxwwQfGJ2VB5ZQD7apuTI4+vou\nwSBS\r\n=dMyh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFkXgVNJIATmu2iAzbpsA0HxSDjTMnh2aL/f/1SwOS5UAiA2/cI3IOQiXSqRh3jxzQeSJ4bdAlY+wJyLmy9oqlYYpA=="}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply_0.3.0_1537302415805_0.08170413448223668"},"_hasShrinkwrap":false},"0.3.1":{"name":"thumbsupply","version":"0.3.1","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha","cover":"istanbul cover _mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.3","lodash":"^4.17.11","mime-types":"^2.1.20"},"devDependencies":{"image-size":"^0.6.3","istanbul":"^0.4.5","mocha":"^5.2.0"},"gitHead":"0b90c83deb58d8abb721d8414cd8815683ec81f4","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.3.1","_npmVersion":"6.4.1","_nodeVersion":"8.9.3","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-eXwoLwfBlZnsjc8PIzacQXI7L6Bl2TLXLPyG3fej862ELWdgw/6b8FxMuq8ccnXRd3euz14ZzsR1iecAS9vBkQ==","shasum":"3072778f39dcee2eaae8f7492eea1b8aa19ebff8","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.3.1.tgz","fileCount":11,"unpackedSize":1071256,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9bHwCRA9TVsSAnZWagAA3wIP/3JrpSrV0SqBA9KBYaCJ\n6wsybFDcwAkyfSSWH8NnjZP77R1Z8vp8eAe33Qs3/hNq7azr8Ss/nbB+NFpU\n2h1/hWmayY8jLkYmClp6B3ttZJsAZ4g97mqoPk2PEyOgjsUbwword2Yc4qM+\nOBzADW11k6j7YTWNScr8rnEoS/APCdMWay9BM2s2u7bKDxtxRVbJjtr4ObMM\nDPHYWslqx0BNLRvsbSgzdMwmkdz7wETci1AfRT4KNXXrGSl7l4krKCsHXeVE\nwrav6IqTRs5goMhJj2qylsnrM5+72cAEEh11EePYmd623JtIzhk1XG+5C+y3\nc5oeg6ylxSb69p3DaCwGzCrNXLf9xhQorXKnEVwpJ5KNehLhyJSu7gVpzY6V\nhuB4hZxmYH4JWVAa6NDj1OqMfbVnFlf1xb00C2spQ/y4oHADKOZNBmhS1kgr\ndVJYY2HvaODN6JSpJPbsYgnkxD4KZ/+6Jt2muLcRs1Ni6FNBVJcFdsg1PSfz\nddgyiEM4A9JgKAs5Lqv9JZmEao5LTDb6tLayCxwd+TO6s1l63H2W7sPUMWcR\niy3f5gpzsW68S2FIWNQ6w7cwMmk783/EVsy1WzMnARQgHNOSxshbiEXlYMj3\n4vkLDeZEwIAVXpRQPIogXnY7MF0Em4qq15/2KX5Di9UgGcxXbelv0J+WkZOM\nNvX1\r\n=poNp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBX4ryqqR+Z2Eo6fe/PouRWdWJJ81xno8wwAObHyE6MWAiEA482253JMbLj96iEpE18HhvCLyEbFa/YUQPoE+MFinXw="}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply_0.3.1_1542828527029_0.8581685096325196"},"_hasShrinkwrap":false},"0.4.0":{"name":"thumbsupply","version":"0.4.0","description":"Asynchronous thumbnail supplier with caching for Node.js","main":"index.js","scripts":{"test":"mocha","cover":"istanbul cover _mocha"},"keywords":["thumbnail","video","cache"],"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"dependencies":{"file-url":"^2.0.2","fluent-ffmpeg":"^2.1.2","fs-extra":"^4.0.3","lodash":"^4.17.11","mime-types":"^2.1.20"},"devDependencies":{"image-size":"^0.6.3","istanbul":"^0.4.5","mocha":"^5.2.0"},"gitHead":"245b49b550533094abf4f07ce138c2ebfa7d0fbf","bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","_id":"thumbsupply@0.4.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.0","_npmUser":{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"},"dist":{"integrity":"sha512-O/HGZ5dsG+/Bjp8ZMzs80Y9TqbajBifbKP726w3ow+4C++ytV5bK3awdvCQsGqxH+Oe5DJrbssiQE9ZMCrPeKw==","shasum":"0c14bdb42d8613f294664ca20158905e733018b5","tarball":"https://registry.npmjs.org/thumbsupply/-/thumbsupply-0.4.0.tgz","fileCount":8,"unpackedSize":13117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTGMHCRA9TVsSAnZWagAAcm0P/1OcPKAC+phpB91u85JX\nVwa3IEi14eBSz/zmrgVpcPgR806LBkIMBO8VCD0ezl+K4u3ngBmen7nA9cbP\nLTzso5UpksCZEu4RUY7dlIdczAIyTR2HCouHTkJTVwXaAgGj05ywFH2iTKb9\n1rGXeogAQfLhzfLAqNn6/2dTutNhWM+kADLaUBdzF6AWwsMq9vZ9lTr9XAuq\nBFmYe1Qu4X9Kq+U1xJDlD/pa5rPO5BoR/0gSjWcrB1fIMaWU7LaeZQCRYvbe\nx0/Q4D3KNQr32EBsYxjn1jPuteX60mg4EWMz0aWMRUpm5XnuxeOyk359Azka\nAMJHnej+Iml+6ph/wXbMlxTo6fUqtfjC42h8fw6n3wnnSFa86014wguvVs5q\nKgLqhup1DUzTCmkP0N5ydNn2dt1zbn5gV2IAg2wmxq5q6o/hl346POzG1VCs\nXMqI4QetGURWcd5kkgDuhf7eSdtXg09ru6Xu+/kQAcGiEr2VBvvPdy8gbQ1r\nM6u4ND0vaG7B3JjhZMee0uXaTHNSMD9JFKY3v+oHvgil3T49NlHbzbg9l8ac\n9WDp2Anu3OanjWOQFPWC+dRYGcO9STuxI63caHWenragTgtB0NnrTAjsX108\n0dR7vGww/SecvjlwSFAqR19f5PpDrerEoKBqWIcKtFgPY3glV0cJ4wjgV8Sj\nwppP\r\n=UJlC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuowCWVxOb1VIarG3J+LMJ+wHFKlOctaga9uiaWIFl8AIhALAemdHaE4tpSYE1OsXsIXlZX5pK/x05oPvtcmq9Iu/y"}]},"maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/thumbsupply_0.4.0_1548509958455_0.9101181506749356"},"_hasShrinkwrap":false}},"readme":"# thumbsupply\nAsynchronous Node.js module to create, cache and fetch thumbnails from\nvideos. It uses **ffmpeg** to generate thumbnails and **ES6 Promise**.\n\nThe API is more reliable now and is unlikely to have major changes before stable release.\n\nHealthy criticisms, feature requests and issues are welcome.\n\n*NOTE*: Since v0.2, the module no longer maintains thumbnails separately\nfor each application. This behavior is intended to improve the performance\nand utilize caching as far as possible.\n\n## Installation\n\n```bash\nnpm install thumbsupply\n```\n\n## Usage\n\n### Generating Thumbnails\n\nThe resolved promise gives filepath of the generated thumbnail. In case\nof modifications to be performed on the generated thumbnail, it's\nrecommended to work on a copy.\n\nUsing `generateThumbnail()` method by default enables caching to speeden\nup the process.\n\n```javascript\nconst thumbsupply = require('thumbsupply');\n\nthumbsupply.generateThumbnail('some-video.mp4')\n    .then(thumb => {\n        // serve thumbnail\n    })\n```\n\nIt accepts options to control timestamp and size of the thumbnail. The\n`forceCreate` option can be used to generate the thumbnail every \ntime. Mimetype of the file can be specified using `mimetype` \noption. It overrides mimetype derived from the file extension and \ncan be used for cases where such derivation is not possible. `cacheDir` \nallows configuring the directory to store the thumbnail cache. Unless \nthere is an explicit need, it is good to use shared cache.\n\n```javascript\nconst thumbsupply = require('thumbsupply');\n\nthumbsupply.generateThumbnail('some-video.mp4', {\n    size: thumbsupply.ThumbSize.MEDIUM, // or ThumbSize.LARGE\n    timestamp: \"10%\", // or `30` for 30 seconds\n    forceCreate: true,\n    cacheDir: \"~/myapp/cache\",\n    mimetype: \"video/mp4\"\n})\n```\n\n*NOTE:* Thumbnails which are older than the video get expired\nautomatically.\n\n### Look up Thumbnails\n\nInstead of creating a thumbnail, sometimes you may need to get the\nthumbnail if it exists.\n\n```javascript\nconst thumbsupply = require('thumbsupply');\n\nthumbsupply.lookupThumbnail('some-video.mp4')\n    .then(thumb => {\n        // serve thumbnail\n    })\n    .catch(err => {\n        // thumbnail doesn't exist\n    });\n```\n\n## Features on the way\n\n_thumbsupply_ will soon be supporting music, pictures and so on. The\narchitecture required is already shipped.\n\nDevelopers can experiment with some of the non public API's to create\nthumbnail suppliers supporting new formats. Documentation on how to do\nthat will be released with the production version.\n\n## External bugs\n\n+ _ffmpeg_ is producing screenshots which mismatch the resolution\nspecified by 1 unit.","maintainers":[{"name":"ryanafrish7","email":"ryanafrish7@gmail.com"}],"time":{"modified":"2022-05-21T19:40:43.712Z","created":"2017-09-17T21:27:25.371Z","0.0.1":"2017-09-17T21:27:25.371Z","0.1.0":"2017-09-21T09:50:09.186Z","0.1.1":"2017-09-23T10:41:16.224Z","0.2.0":"2017-10-02T12:16:00.755Z","0.2.1":"2017-10-03T13:14:02.923Z","0.3.0":"2018-09-18T20:26:56.028Z","0.3.1":"2018-11-21T19:28:47.346Z","0.4.0":"2019-01-26T13:39:18.656Z"},"homepage":"https://github.com/RyanAfrish7/thumbsupply#readme","keywords":["thumbnail","video","cache"],"repository":{"type":"git","url":"git+https://github.com/RyanAfrish7/thumbsupply.git"},"author":{"name":"Afrish Khan S","email":"ryanafrish7@gmail.com"},"bugs":{"url":"https://github.com/RyanAfrish7/thumbsupply/issues"},"license":"MIT","readmeFilename":"README.md"}