{"_id":"rescode","_rev":"37-fc5af91b6ef4ed194e556e0b44836bb1","name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","dist-tags":{"latest":"0.1.10"},"versions":{"0.1.0":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.0","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/codes_factory"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.0","dist":{"shasum":"b7ce3fa0295ea775346735a1dde3179a6f4b18c4","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.0.tgz","integrity":"sha512-cklQohuHGU5Nbm6YcfFcsrGW6r7Ed2wA4v6Y25YA15e38FedDy+VRJzITf3y4y1gYy1Xk4IcFtj4C1uK03pYwA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAmtPpHRs1FgQNGNAjMLzYFAqiZ8EP/8SA64/bVGaNdTAiB2oYGfdwGjNoMhOwH3i9pkeJOVGlWKxbr5P7Zdqp/8ng=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}],"directories":{}},"0.1.1":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.1","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescodes"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.1","dist":{"shasum":"3dc56d864f2cabe27f2be40a79192d88104dda7c","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.1.tgz","integrity":"sha512-Tkuc6JD4Ska72ZF1S35nfQvWXh6jBkdXVR2pJyhZTLV0i2Gegj1YXeTcJ4E2WLzpdysuUARuQ0dS9QijxR8YPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOwMdj28J7pSewM/o1E1vVjaPUTwl2CZmTXkgcorZDGAiANAhWogH3xCvGkgiTIGtc4pjPWCSxjNSDeKfadVRCOYA=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.3":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.3","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.3","dist":{"shasum":"2e4a33fc07929ab931232964b2bc71ebf9f951f2","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.3.tgz","integrity":"sha512-BTEP/ctrEJwmUNGiLKnP8U+sMIS5/GaAxcH08DJkW1y1B7ipDKQwjXv0EbMXk0Wig6MGfhxmla088l2NceCXTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqX1+uFz8ujZuAxtf+2D8g+t95J3hRDpTRiDbvtW4sDQIgGtNi1BfB59ffOdoqXMMok5S7P41fjydX9Re6tQEbows="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.4":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.4","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.4","dist":{"shasum":"dbd18a145c6a265fd637ca6cf93fa85a14b0a969","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.4.tgz","integrity":"sha512-GoA/SZNtpwNHKH8ta3OaP7TfmMZWPbrgD3AxQQXfkiHUusdmuNiZAxjLWayePxn722a/9cOKq8OlVL5VJxWbNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByvfBG9Nz2Y+RiysvhRF7JFOJVOx5riiSh9ONXirBUyAiAPAdLQheFnGnfmnlWa4MDN3wSYWVUOCY3msOnpsLnVDg=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.5":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.5","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.5","dist":{"shasum":"e8afaa533076e3631b83d8ab823e0a305a062512","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.5.tgz","integrity":"sha512-RJZemBLWGmI1Jk6dWvlEXl4y0nW+3vS2/7ucdWCa6KE87Iy2rX2M9+RSzRNA//ayi+OxRhQykoKriWia2DmV+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1TFYFMqqhS5Zh0mpBXvv9a1qjPzxw9A0YYiH9scaP8AiEA2dc/dUm96ntT5A9Wxk3YfPLHGpF1ECjrWew7Hx8eYMM="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.6":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.6","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.6","dist":{"shasum":"37a2df2ac714826ff470c440e0ffb2f8204c6460","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.6.tgz","integrity":"sha512-EN+wf6b9xoyq+T9DwRkwrIa2hfmE2y71NPEyXAlBckS+dYniwPsH/UE2VsZTYjmkoufGqzhTOqTuUN5laRTqVA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDI9yAThUMNgjmpjNqmcdehMhzkYmmp/UUSopUAJzsSAAiEAuAhPmM+uxuw/ieBs8JDptjuxazs7EnCDMN5cj/3qBW0="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.7":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.7","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.7","dist":{"shasum":"0f8a833aa7a8c92d31a9519be8849da212058558","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.7.tgz","integrity":"sha512-3lrs573qk9OG3HJtQYnx0UGwMvOMVCZlFcolyM+d856EspaHp3V7SFK3GiYrON70o6C5xssJNxL1hg+U7SRtfA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAniwUz5h/NoQucab1w5kH9O8eB4eG7Y5xBpwSSoGhv0AiAJh1eyJUO4573SXSv6zjyrqqffPBUaTuO+VJ6hH9yDZQ=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.8":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.8","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"engines":{"node":"*"},"_id":"rescode@0.1.8","dist":{"shasum":"4227e406f7824f0e32ed9bc7c57854fba306f588","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.8.tgz","integrity":"sha512-rYqAjEm/mPdV7NgBQA7RuybPgzLrB64D/U7hxb+nloKtCmBN59FIckXSa57rVVlcXaRfEh4QmBKO1zfWuCTevA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID14HX/zuh7U83EcRpvZyeJoajzgaDxal/N/EMgvb/UmAiEAgzOrhmfPAGPLUjlPpczNuuPNHE+RFRVRe/vmnoAIMFA="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}]},"0.1.9":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.9","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"devDependencies":{"assert":"~1.1.2","mocha":"~2.0.1","gulp":"~3.8.9","gulp-jshint":"~1.8.6","gulp-mocha":"~1.1.1","jshint-stylish":"~1.0.0"},"gitHead":"270a4b639bde3ee3d11c154970e39487095d7cf3","bugs":{"url":"https://github.com/epha/rescode/issues"},"homepage":"https://github.com/epha/rescode","_id":"rescode@0.1.9","_shasum":"cf0d7874427fa76d7bad9223bd9dbe15da3d00d1","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}],"dist":{"shasum":"cf0d7874427fa76d7bad9223bd9dbe15da3d00d1","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.9.tgz","integrity":"sha512-S8MAfRHGs2kJOKvvMzJgzOWPv9Y2U10inIPpfsTFodrdglr4GoUtsNvZ/cRNYF+SXuBPWnyzD13D1fgbq4njAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7dryqYyh08irny09YiPsEgso1cHjL8zNV8rG/vLl7BAiEAvgVdQT4TDfVGcmF6i9UA0aSQClSQ6JwumX1GNk12Prw="}]}},"0.1.10":{"name":"rescode","description":"Generate Codes (EAN13, QRCODE ..)","version":"0.1.10","author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"dependencies":{},"keywords":["codes","ean13","qrcode"],"repository":{"type":"git","url":"git://github.com/epha/rescode"},"main":"index","bin":{},"scripts":{"prepublish":"npm prune"},"devDependencies":{"assert":"~1.1.2","mocha":"~2.0.1","gulp":"~3.8.9","gulp-jshint":"~1.8.6","gulp-mocha":"~1.1.1","jshint-stylish":"~1.0.0"},"gitHead":"06ba491d40299250f542ab6949005e50d4f05154","bugs":{"url":"https://github.com/epha/rescode/issues"},"homepage":"https://github.com/epha/rescode","_id":"rescode@0.1.10","_shasum":"35defe90f31cec7043aa31d91b36404df5c6917c","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"epha","email":"marco.egbring@epha.ch"},"maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}],"dist":{"shasum":"35defe90f31cec7043aa31d91b36404df5c6917c","tarball":"https://registry.npmjs.org/rescode/-/rescode-0.1.10.tgz","integrity":"sha512-rR8L6D8DmUCiy+n2WsJ/tqBK+OkFQuSX0ZANCkytEHSdtOUPQOfG5IHsPr7vMPtKvbC59+t0mFfkjzElLCmxfw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICL++2cF7AlStKaYKM0J8v6vtU3+D5ttL7kA0ZG9/dmSAiEApurfdUn5SxsgeXofXRocdvmqQuIHE0YfHX6bR5DdKZU="}]}}},"readme":"Codes\n=========\nNotice that I am not the author of the code, I am just the creator of an npm module out of the great library from https://code.google.com/p/bwip-js/.\n\nInstall\n---------\n\tnpm install rescode\n    \n    \nBarcode or Code types available\n----------\nean2, ean5, ean8, upca, upce, isbn, ismn, issm, code128, gs1-128, ean13, sscc18, code39, code39ext, code32, pzn, code93, code93ext, interleaved2of5, itf14, identcode, leitcode, databaromni, databarstacked, databarstackedomni, databartruncated, databarlimited, databarexpanded, databarexpandedstacked, pharmacode, pharmacode2, code2of5, code11, bc412, rationalizedCodabar, onecode, postnet, planet, royalmail, auspost, kix, japanpost, msi, plessey, telepen, posicode, codablockf, code16k, code49, channelcode, flattermarken, raw, daft, symbol, pdf417, micropdf417, datamatrix, qrcode, maxicode, azteccode, codeone, gs1-cc, ean13composite, ean8composite, upcacomposite, upcecomposite, databaromnicomposite, databarstackedcomposite, databarstackedomnicomposite, databartruncatedcomposite, databarlimitedcomposite, databarexpandedcomposite, databarexpandedstackedcomposite, gs1-128composite, gs1datamatrix, hibccode39, hibccode128, hibcdatamatrix, hibcpdf417, hibcmicropdf417, hibcqrcode, hibccodablockf\n\t\nExample loading specific barcode types\n---------------------------------------\n\tvar codes = require(\"rescode\");\n\n\tfunction( res, req ) \n\t{\n        // Sequence is important\n\t\tcodes.loadModules([\"ean2\", \"ean5\", \"ean8\", \"ean13\"]);\n\t\t\n\t\tvar data8 = codes.create(\"ean8\",\"12345678\");\n        \n        res.setHeader(\"Content-Type\",\"image/png\");\n\t\tres.end( data8 );\n        \n        OR\n        \n        res.end(\"<html><img src='data:image/png;base64,\"+data8.toString(\"base64\")+\"' /></html>\");\n\t}\t\n\t\nExample loading ean barcode types and setting specific options\n--------------------------------------------------------------------\n\tvar codes = require(\"rescode\");\n\n\tfunction( res, req ) \n\t{\n\t\tcodes.loadModules([\"ean2\", \"ean5\"]);\t\t\n        codes.loadModules([\"ean8\"], { \"includetext\":false, \"guardwhitespace\":false, \"inkspread\":0, scaleX:3, textyoffset:-15 });\n\t\tcodes.loadModules([\"ean13\"]);\n        \n\t\tvar data8 = codes.create(\"ean8\",\"12345678\");\n        \n        res.setHeader(\"Content-Type\",\"image/png\");\n\t\tres.end( data8 );\n        \n        OR\n        \n        res.end(\"<html><img src='data:image/png;base64,\"+data8.toString(\"base64\")+\"' /></html>\");\n\t}\t\n\t\t\nExample loading qrcode\n----------------------------------------------------------------------------\n\n\tvar codes = require(\"rescode\");\n\n\tfunction( res, req ) \n\t{\n      // Level L  - 7% of codewords can be restored\n      // Level M  - 15% of codewords can be restored\n      // Level Q  - 25% of codewords can be restored\n      // Level H  - 30% of codewords can be restored\n      // IMPORTANT white padding around qrcode \n      \n      // CREATE\n      codes.loadModules([\"qrcode\"], { \"eclevel\":\"M\" , \"version\": \"4\", \"scaleX\": 2, \"scaleY\": 2} );  \n      \n      var data = codes.create(\"qrcode\",\"http://npmjs.org\");\n        \n      OR\n      \n      codes.loadModules([\"qrcode\"]);  \n      \n      var data = codes.create(\"qrcode\",\"http://npmjs.org\", { \"eclevel\":\"M\" , \"version\": \"4\", \"scaleX\": 2, \"scaleY\": 2} );\n        \n      // SHOW\n      res.setHeader(\"Content-Type\",\"image/png\");\n      res.end( data );\n      \n      OR\n      \n      res.end(\"<html><img src='data:image/png;base64,\"+data.toString(\"base64\")+\"' /></html>\");\n\t}\n\n\nConfigure\n---------\nChoose in lib/codes.js the Adatper PNG ( binary png ) or Canvas ( dataURL (smaller size), but canvas has to be installed )\n\n\t\nThanks\n---------\nTo Jens Olsson for dynamic loading of the libraries\n  ","maintainers":[{"name":"epha","email":"marco.egbring@epha.ch"}],"time":{"modified":"2022-06-26T11:46:02.876Z","created":"2013-08-14T16:08:14.223Z","0.1.0":"2013-08-14T16:08:18.990Z","0.1.1":"2013-08-14T16:18:16.798Z","0.1.3":"2013-08-14T16:19:49.993Z","0.1.4":"2013-08-14T16:22:09.475Z","0.1.5":"2013-08-14T21:02:42.086Z","0.1.6":"2013-11-25T10:48:53.544Z","0.1.7":"2013-11-25T11:18:16.989Z","0.1.8":"2013-12-24T09:20:49.973Z","0.1.9":"2014-11-03T09:15:14.835Z","0.1.10":"2015-02-13T17:41:44.730Z"},"author":{"name":"Marco Egbring","email":"marco.egbring@epha.ch"},"repository":{"type":"git","url":"git://github.com/epha/rescode"},"users":{"jasonweng":true,"hubo502":true,"epha":true,"fedor":true,"fabio.landi":true},"homepage":"https://github.com/epha/rescode","keywords":["codes","ean13","qrcode"],"bugs":{"url":"https://github.com/epha/rescode/issues"},"readmeFilename":"README.md"}