{"action":"created","issue":{"url":"https://api.github.com/repos/metafloor/bwip-js/issues/86","repository_url":"https://api.github.com/repos/metafloor/bwip-js","labels_url":"https://api.github.com/repos/metafloor/bwip-js/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/metafloor/bwip-js/issues/86/comments","events_url":"https://api.github.com/repos/metafloor/bwip-js/issues/86/events","html_url":"https://github.com/metafloor/bwip-js/issues/86","id":258212069,"number":86,"title":"Buffer.alloc is not a function","user":{"login":"bhargavmullakuru","id":26109320,"avatar_url":"https://avatars3.githubusercontent.com/u/26109320?v=4","gravatar_id":"","url":"https://api.github.com/users/bhargavmullakuru","html_url":"https://github.com/bhargavmullakuru","followers_url":"https://api.github.com/users/bhargavmullakuru/followers","following_url":"https://api.github.com/users/bhargavmullakuru/following{/other_user}","gists_url":"https://api.github.com/users/bhargavmullakuru/gists{/gist_id}","starred_url":"https://api.github.com/users/bhargavmullakuru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhargavmullakuru/subscriptions","organizations_url":"https://api.github.com/users/bhargavmullakuru/orgs","repos_url":"https://api.github.com/users/bhargavmullakuru/repos","events_url":"https://api.github.com/users/bhargavmullakuru/events{/privacy}","received_events_url":"https://api.github.com/users/bhargavmullakuru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2017-09-16T06:21:07Z","updated_at":"2017-09-19T15:47:18Z","closed_at":null,"author_association":"NONE","body":"Hi im getting some error..can you help me with that"},"comment":{"url":"https://api.github.com/repos/metafloor/bwip-js/issues/comments/330582911","html_url":"https://github.com/metafloor/bwip-js/issues/86#issuecomment-330582911","issue_url":"https://api.github.com/repos/metafloor/bwip-js/issues/86","id":330582911,"user":{"login":"metafloor","id":385436,"avatar_url":"https://avatars1.githubusercontent.com/u/385436?v=4","gravatar_id":"","url":"https://api.github.com/users/metafloor","html_url":"https://github.com/metafloor","followers_url":"https://api.github.com/users/metafloor/followers","following_url":"https://api.github.com/users/metafloor/following{/other_user}","gists_url":"https://api.github.com/users/metafloor/gists{/gist_id}","starred_url":"https://api.github.com/users/metafloor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metafloor/subscriptions","organizations_url":"https://api.github.com/users/metafloor/orgs","repos_url":"https://api.github.com/users/metafloor/repos","events_url":"https://api.github.com/users/metafloor/events{/privacy}","received_events_url":"https://api.github.com/users/metafloor/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T15:47:18Z","updated_at":"2017-09-19T15:47:18Z","author_association":"OWNER","body":"Don't know what to tell you.  Your code works.  Here it is with node v4:\r\n\r\n```\r\n$ npm install bwip-js\r\nC:\\tmp\r\n`-- bwip-js@1.5.6\r\n\r\n$ node4\r\n> process.version\r\n'v4.0.0'\r\n> var bwipjs = require('bwip-js')\r\n> bwipjs.toBuffer({\r\n    bcid: 'code128', // Barcode type\r\n    text: \"hello..!\" ,// Text to encode\r\n    scale: 3, // 3x scaling factor\r\n    height: 10, // Bar height, in millimeters\r\n    includetext: true, // Show human-readable text\r\n    textxalign: 'center', // Always good to set this\r\n    }, function (err, png) {\r\n    if (err) {\r\n       console.log(\"err\", err);\r\n       // Decide how to handle the error\r\n       // err may be a string or Error object\r\n    } else {\r\n       console.log(\"png\", png);\r\n       var base64String = png.toString('base64');\r\n       console.log(\"base64String\", base64String);\r\n    }\r\n    });\r\npng <Buffer 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 01 71 00 00 00 6f 08 03 00 00 00 2d f2 00 c9 00 00 00 1e 74 45 58 74 53 6f 66 74 77 61 72 65 00 ... >\r\nbase64String iVBORw0KGgoAAAANSUhEUgAAA ...snip... AAAAABJRU5ErkJggg==\r\n```\r\n\r\nSimilar results with more modern nodes."}}
{"actor":{"display_login":"metafloor"}}