{"_id":"bmp-js","_rev":"9-af07f6a7ff712204a552ee5e951886bf","name":"bmp-js","description":"A pure javascript BMP encoder and decoder","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"bmp-js","version":"0.0.1","description":"A pure javascript BMP encoder and decoder","main":"index.js","repository":{"type":"git","url":"https://github.com/shaozilee/bmp-js"},"keywords":["bmp","1bit","4bit","8bit","24bit","encoder","decoder","image","javascript","js"],"author":{"name":"shaozilee","email":"shaozilee@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{},"bugs":{"url":"https://github.com/shaozilee/bmp-js/issues"},"homepage":"https://github.com/shaozilee/bmp-js","_id":"bmp-js@0.0.1","_shasum":"5ad0147099d13a9f38aa7b99af1d6e78666ed37f","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"shaozilee","email":"shaozilee@gmail.com"},"maintainers":[{"name":"shaozilee","email":"shaozilee@gmail.com"}],"dist":{"shasum":"5ad0147099d13a9f38aa7b99af1d6e78666ed37f","tarball":"https://registry.npmjs.org/bmp-js/-/bmp-js-0.0.1.tgz","integrity":"sha512-OS74Rlt0Aynu2mTPmY9RZOUOXlqWecFIILFXr70vv16/xCZnFxvri9IKkF1IGxQ8r9dOE62qGNpKxXx8Lko8bg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxZxw2fUbLXt6WiZpPsuXt1/7VMd4ikJ2VQt0BF/SGZAIhAP0zxc0Ys6ZsJ4nw7t7U4SJDp6wonxswxb4Iv7h7vtVs"}]},"directories":{}},"0.0.2":{"name":"bmp-js","version":"0.0.2","description":"A pure javascript BMP encoder and decoder","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shaozilee/bmp-js.git"},"keywords":["bmp","1bit","4bit","8bit","24bit","encoder","decoder","image","javascript","js"],"author":{"name":"shaozilee","email":"shaozilee@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{},"gitHead":"a93b7b4d1afeeb2a52c3bb96969e158d6403a142","bugs":{"url":"https://github.com/shaozilee/bmp-js/issues"},"homepage":"https://github.com/shaozilee/bmp-js#readme","_id":"bmp-js@0.0.2","scripts":{},"_shasum":"c268321f8085df177dfcaaa059c19254862fa158","_from":".","_npmVersion":"3.8.3","_nodeVersion":"5.10.1","_npmUser":{"name":"shaozilee","email":"shaozilee@gmail.com"},"dist":{"shasum":"c268321f8085df177dfcaaa059c19254862fa158","tarball":"https://registry.npmjs.org/bmp-js/-/bmp-js-0.0.2.tgz","integrity":"sha512-H1Jj1fH9KBb4LHYaZKz2z/WeMDxw4oBXhwFmeW9QfBzuMKrWkp+r4UPNzsoN5+3j3e2CVEC3VzqIuFiat/aUSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxaNxwOS77ro5OP2H5Qt+3Y6xmBNN1WBdys5bzwNVeUAiEAiWw3ygON2ul7HnyQXzQSeMo0CRGs/7L0asZPcAJcH1Y="}]},"maintainers":[{"name":"shaozilee","email":"shaozilee@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bmp-js-0.0.2.tgz_1472181302837_0.6284751661587507"},"directories":{}},"0.0.3":{"name":"bmp-js","version":"0.0.3","description":"A pure javascript BMP encoder and decoder","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shaozilee/bmp-js.git"},"keywords":["bmp","1bit","4bit","8bit","24bit","encoder","decoder","image","javascript","js"],"author":{"name":"shaozilee","email":"shaozilee@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{},"gitHead":"ed420afbf1682ebe34abcbbe23dfbcabaaf161f0","bugs":{"url":"https://github.com/shaozilee/bmp-js/issues"},"homepage":"https://github.com/shaozilee/bmp-js#readme","_id":"bmp-js@0.0.3","scripts":{},"_shasum":"64113e9c7cf1202b376ed607bf30626ebe57b18a","_from":".","_npmVersion":"2.14.20","_nodeVersion":"4.4.1","_npmUser":{"name":"shaozilee","email":"shaozilee@gmail.com"},"dist":{"shasum":"64113e9c7cf1202b376ed607bf30626ebe57b18a","tarball":"https://registry.npmjs.org/bmp-js/-/bmp-js-0.0.3.tgz","integrity":"sha512-epsm3Z92j5xwek9p97pVw3KbsNc0F4QnbYh+N93SpbJYuHFQQ/UAh6K+bKFGyLePH3Hudtl/Sa95Quqp0gX8IQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpdJ7qNq/O4tzz9xBr19cDJpUhJxjZS7PYLC7JI2YLdgIgSmLAk9i5+BqQavPjmXhCMi9l0M2TOah1Y3j7HVRnvaU="}]},"maintainers":[{"name":"shaozilee","email":"shaozilee@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bmp-js-0.0.3.tgz_1479792875581_0.47241814457811415"},"directories":{}},"0.1.0":{"name":"bmp-js","version":"0.1.0","description":"A pure javascript BMP encoder and decoder","main":"index.js","repository":{"type":"git","url":"git+https://github.com/shaozilee/bmp-js.git"},"keywords":["bmp","1bit","4bit","8bit","16bit","24bit","32bit","encoder","decoder","image","javascript","js"],"author":{"name":"shaozilee","email":"shaozilee@gmail.com"},"license":"MIT","dependencies":{},"devDependencies":{},"gitHead":"60fa5ad6ac2f0ce0d2d157de187831a82cdb2cd6","bugs":{"url":"https://github.com/shaozilee/bmp-js/issues"},"homepage":"https://github.com/shaozilee/bmp-js#readme","_id":"bmp-js@0.1.0","scripts":{},"_shasum":"e05a63f796a6c1ff25f4771ec7adadc148c07233","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"shaozilee","email":"shaozilee@gmail.com"},"dist":{"shasum":"e05a63f796a6c1ff25f4771ec7adadc148c07233","tarball":"https://registry.npmjs.org/bmp-js/-/bmp-js-0.1.0.tgz","fileCount":35,"unpackedSize":645720,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa3Wh5CRA9TVsSAnZWagAA8okP/jyfoIcI+z/+YaI0crdy\ntT9deE9Hh02TTj6YJ9SqmFJ8pMNPEwee22MMCM/aZYYP7jHY1MlEO4sfVxMj\nZGGgH09QJNDlGUcW+39LYREVIyrj3XyALaFVqzbbJxtnMKutn2+oAKZO0u1V\n915Zauh9NMOq/nClo+wzs1cV35zZ+G9YNGqTLxJQcPEuVjXYbFx9WEwXLLS4\nZaGu9ywNlPT6gAmFZd3NwIs2eMKEXeb+oEXj7qdcPA+pXXTjWHyh//iA77AM\nwlfXX23+Faa9VZzh1Ou9VCqPYSaEeA+cv47HSx3kyu/TcGpD8x/dBhPw1z8v\nAGE0ndFcGwDk+k3jSYmcsvFyaYiHg9M6B6q80Poj++ir8DLw6lHOc+AUhYkS\nwofZSTO7lcjXrRYrMbgXxZsHrQUp+FaGuihPqre1AoruUfl6TtowxUzfMhnc\n6sJ/AYWc2TFfoMi5cXUALVw1RcmwIwQbO6jfGGqZhLEW4at/z2XuLR3T0IBu\nX/O06EvC9W28tN8Jf7A3H6x4HZq7ni1zr3ruDT8ndLs0FpIUvupVBQF2Era8\nv5/ooJiJpIOUcfVCkoDbX8lUKBAil2LaGED4+vObQYi02+r0sXK+bpH8bCkt\nzb9wHmq7e/fX490mDM+HDLX6WLYJ/Zjdq6cID7VBEHEBp7HqT+BIUe2geW6D\nsXpO\r\n=Z50r\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-vHdS19CnY3hwiNdkaqk93DvjVLfbEcI8mys4UjuWrlX1haDmroo8o4xCzh4wD6DGV6HxRCyauwhHRqMTfERtjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmoogwD1osBAW7XwX+yxwV6U51Z+0qfsubCKQztdBb4QIhAPgYxkS0aDGROj3ACG74MZQGtqK+EeO+GzE4vjWkOQ4T"}]},"maintainers":[{"name":"shaozilee","email":"shaozilee@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bmp-js_0.1.0_1524459640834_0.7767685293103714"},"_hasShrinkwrap":false}},"readme":"bmp-js\n======\n\nA pure javascript Bmp encoder and decoder for node.js\n\nSupports all bits decoding(1,4,8,16,24,32) and encoding with 24bit.\n\n##Install\n\n\t$ npm install bmp-js\n\n\nHow to use?\n---\n###Decode BMP\n```js\nvar bmp = require(\"bmp-js\");\nvar bmpBuffer = fs.readFileSync('bit24.bmp');\nvar bmpData = bmp.decode(bmpBuffer);\n\n```\n\n`bmpData` has all properties includes:\n\n1. fileSize,reserved,offset\n\n2. headerSize,width,height,planes,bitPP,compress,rawSize,hr,vr,colors,importantColors\n\n3. palette\n\n4. data-------byte array order by ABGR ABGR ABGR,4 bytes per pixel\n\n\n###Encode RGB\n```js\nvar bmp = require(\"bmp-js\");\n//bmpData={data:Buffer,width:Number,height:Height}\nvar rawData = bmp.encode(bmpData);//default no compression,write rawData to .bmp file\n\n```\n\nLicense\n---\nU can use on free with [MIT License](https://github.com/shaozilee/bmp-js/blob/master/LICENSE)","maintainers":[{"name":"shaozilee","email":"shaozilee@gmail.com"}],"time":{"modified":"2022-06-13T04:52:37.916Z","created":"2014-08-04T07:23:12.671Z","0.0.1":"2014-08-04T07:23:12.671Z","0.0.2":"2016-08-26T03:15:04.595Z","0.0.3":"2016-11-22T05:34:37.598Z","0.1.0":"2018-04-23T05:00:40.902Z"},"homepage":"https://github.com/shaozilee/bmp-js#readme","keywords":["bmp","1bit","4bit","8bit","16bit","24bit","32bit","encoder","decoder","image","javascript","js"],"repository":{"type":"git","url":"git+https://github.com/shaozilee/bmp-js.git"},"author":{"name":"shaozilee","email":"shaozilee@gmail.com"},"bugs":{"url":"https://github.com/shaozilee/bmp-js/issues"},"license":"MIT","readmeFilename":"README.md","users":{"dofy":true,"leizongmin":true}}