{"_id":"barc","_rev":"11-5e0917e7b59e8c92fe3f1a028db40ed8","name":"barc","description":"Library for creating 1D barcodes with node.js. Backed by node-canvas.","dist-tags":{"latest":"0.0.4"},"versions":{"0.0.1":{"author":{"name":"Peter Magnusson","email":"kmpm@birchroad.net"},"name":"barc","description":"Library for creating 1D barcodes with node.js. Backed by node-canvas.","keywords":["barcode","canvas"],"version":"0.0.1","repository":{"url":"git://github.com/birchroad/node-barc"},"main":"index.js","engines":{"node":">=v0.4.8"},"dependencies":{"canvas":">=0.0.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/home/peterm/.npm/barc/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"barc@0.0.1","_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"9d3cab8f19620a5ce0017213774043d1fa8451f9","tarball":"https://registry.npmjs.org/barc/-/barc-0.0.1.tgz","integrity":"sha512-f2YER7bFn9Yp86Z8/SkEGuuHE6Qv+eFUknww8X6zUQNcTJMAMEh7NwLv9dDNmfMjSxmKkRPr9PiIRCpLh5xxzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEGyr1aiSPElTnXrjm0C4lA7KgGLhS8UGHOkwvLxLfa8AiBt8cMihyjbEaoA0b6LTXWi9iDKLs1Rsb2WkjqSgJaq7Q=="}]},"scripts":{},"maintainers":[{"name":"birchroad","email":"info@birchroad.net"}]},"0.0.2":{"author":{"name":"Peter Magnusson","email":"kmpm@birchroad.net"},"name":"barc","description":"Library for creating 1D barcodes with node.js. Backed by node-canvas.","keywords":["barcode","canvas"],"version":"0.0.2","repository":{"url":"git://github.com/birchroad/node-barc"},"main":"index.js","engines":{"node":">=v0.4.8"},"dependencies":{"canvas":">=0.0.1"},"devDependencies":{},"_npmJsonOpts":{"file":"/home/sysadmin/.npm/barc/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"barc@0.0.2","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"b8c7f1ec41edf43d553b1c89db4f3a348e5a092c","tarball":"https://registry.npmjs.org/barc/-/barc-0.0.2.tgz","integrity":"sha512-kLaU6o1MsSysh2SC2rFjZDTUaocSbJEISN+uzeqtXGwfa/J9ODia17iLZoCg6wTr9kncgE5A6qr7clgpFhJnWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvc0hN5mF4pyNXNJhIGE8w4GUupqudKUGc/qI1QP7D4AiEAp9+ABUkVcKjbfps+BHB1dIvEAvL/MGM7yyTFk81apHU="}]},"scripts":{},"maintainers":[{"name":"birchroad","email":"info@birchroad.net"}]},"0.0.3":{"author":{"name":"Peter Magnusson","email":"kmpm@birchroad.net"},"name":"barc","description":"Library for creating 1D barcodes with node.js. Backed by node-canvas.","keywords":["barcode","canvas","code 128","code 2of5"],"version":"0.0.3","repository":{"type":"git","url":"git://github.com/birchroad/node-barc.git"},"bugs":{"url":"http://github.com/birchroad/node-barc/issues"},"main":"index.js","engines":{"node":">=v0.4.8"},"dependencies":{"canvas":">=0.0.1"},"devDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/birchroad/node-barc/raw/master/LICENSE"}],"_npmJsonOpts":{"file":"/home/sysadmin/.npm/barc/0.0.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"barc@0.0.3","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"6effc2d17bf178327e37559fe2d130e98f2abe41","tarball":"https://registry.npmjs.org/barc/-/barc-0.0.3.tgz","integrity":"sha512-QXlSdswIJoMBqQU7big8AG51KvPtnlMJeLrmTZK0Nm6rwCq09wy/9J+VVwzoru9Vfq2g7UZEnxtDUr5vcUD87Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCN40MMt5XL4IdgjqdMK9vM5dKnLcUa0o2RzVQfp8oXVwIhAMlKWrh0+rQrfFId3ooE5yYwQzbi4E0CC3LaZ7vVDBHV"}]},"scripts":{},"maintainers":[{"name":"birchroad","email":"info@birchroad.net"}]},"0.0.4":{"author":{"name":"Peter Magnusson","email":"kmpm@birchroad.net"},"name":"barc","description":"Library for creating 1D barcodes with node.js. Backed by node-canvas.","keywords":["barcode","canvas","code 128","code 2of5"],"version":"0.0.4","repository":{"type":"git","url":"git://github.com/birchroad/node-barc"},"bugs":{"url":"http://github.com/birchroad/node-barc/issues"},"main":"index.js","engines":{"node":">=v0.4.8"},"dependencies":{"canvas":">=0.0.1"},"devDependencies":{},"licenses":[{"type":"MIT","url":"http://github.com/birchroad/node-barc/raw/master/LICENSE"}],"readme":"# node-barc\n Barc is a barcode library for 1D barcodes rendered using node-canvas.\n The plan is to suport at least Code2of5, Code39 and Code128 of whitch\n Code2of5 and Code128 are usable.\n It might not be 100% to specification in all cases but it works for\n most applications\n\n## Authors\n\n - Peter Magnusson\n\n## Installation\n    $ npm install barc\n\n### Dependencies\n [node-canvas](http://github.com/LearnBoost/node-canvas) might have some dependencies to look out for. \n Node canvas is a [Cairo](http://cairographics.org/) backed Canvas \n implementation for [NodeJS](http://nodejs.org).\n\n\n## Usage\n\n This library let's you define the size of the resulting image and that might\n lead to unreadable barcodes if you don't make enough room for it.\n The same goes for border and padding. If the smallest bar don't fit the\n resolution used then you will defenitely have issues.\n This will also apply if you add rotation which makes it hard for the graphics\n library and any printers to draw well defined lines.\n Try and see what fit your requirements.\n\n\n### Example\n\n```javascript\nvar Barc = require('barc')\n\t,barc = new Barc()\n\t,fs = require('fs');\n\n//create a 300x200 px image with the barcode 1234\nvar buf = barc.code2of5('1234', 300, 200);\nfs.writeFile(__dirname + '/example.png', buf, function(){\n\tconsole.log('wrote it');\n});\n```\n\n More examples are placed in _./examples_. Most produce one or more png images.\n\n\n## Reference\n\n### Barc#(options)\nConstructor which enables you to set common options for all generated barcodes.\n\n Valid options\n\n - hri - Defaults to __true__. If human readable information i.e. numbers are to be written as well.\n - border - Default to 0. The number of pixels black top and bottom border. Could be a function with (width, height) signature. If the string \"auto\" is given as border it is calculated to 1/30 of the image height.\n - padding Defaults to 0. Padding on the left and right edges. Can be a function with the signature (width, height).\n - font - Defaults to 'FreeMono'. That font must be available to the graphics library\n - fontsize - Defaults to border width or min 12px. Number in pixels of the font size for hri.\n - checksum - Defaults to false. If true, the checksum is appended, if the code varaiant supports it. __Note__: In case of 2of5, the input length increases by one. As a result, the input length switches from even to odd and vice versa.\n\n\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 Peter Magnusson &lt;kmpm@birchroad.net&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","readmeFilename":"README.md","_id":"barc@0.0.4","dist":{"shasum":"53fc8df5900fa3857c1d2ac0897e4f95e2b265f7","tarball":"https://registry.npmjs.org/barc/-/barc-0.0.4.tgz","integrity":"sha512-zNXYip9ZFoAxWpH6vcpkeeKzOno2o65tsO9JJhzVewmiNFX6JDtXSKhe3ocQkWALfJpHvhl4HEfuHi1d5ZZdDw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHDgzxHmJ/Y/b1FD+qqPrt2bY48m3l7/q69mCu/sftVAIgHyv1p2M83IVRaySyzthK4ql+fxXN7SAZOuXqIm5rPcI="}]},"_npmVersion":"1.1.69","_npmUser":{"name":"birchroad","email":"info@birchroad.net"},"maintainers":[{"name":"birchroad","email":"info@birchroad.net"}]}},"maintainers":[{"name":"birchroad","email":"info@birchroad.net"}],"time":{"modified":"2022-06-13T04:15:31.974Z","created":"2011-08-11T07:44:43.430Z","0.0.1":"2011-08-11T07:44:45.690Z","0.0.2":"2011-08-11T11:56:21.185Z","0.0.3":"2011-08-17T14:40:05.917Z","0.0.4":"2013-01-13T07:51:26.990Z"},"author":{"name":"Peter Magnusson","email":"kmpm@birchroad.net"},"repository":{"type":"git","url":"git://github.com/birchroad/node-barc"}}