{"action":"created","issue":{"url":"https://api.github.com/repos/soldair/node-qrcode/issues/64","repository_url":"https://api.github.com/repos/soldair/node-qrcode","labels_url":"https://api.github.com/repos/soldair/node-qrcode/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/soldair/node-qrcode/issues/64/comments","events_url":"https://api.github.com/repos/soldair/node-qrcode/issues/64/events","html_url":"https://github.com/soldair/node-qrcode/pull/64","id":210126221,"number":64,"title":"Add support for different encoding modes","user":{"login":"vigreco","id":2361758,"avatar_url":"https://avatars.githubusercontent.com/u/2361758?v=3","gravatar_id":"","url":"https://api.github.com/users/vigreco","html_url":"https://github.com/vigreco","followers_url":"https://api.github.com/users/vigreco/followers","following_url":"https://api.github.com/users/vigreco/following{/other_user}","gists_url":"https://api.github.com/users/vigreco/gists{/gist_id}","starred_url":"https://api.github.com/users/vigreco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vigreco/subscriptions","organizations_url":"https://api.github.com/users/vigreco/orgs","repos_url":"https://api.github.com/users/vigreco/repos","events_url":"https://api.github.com/users/vigreco/events{/privacy}","received_events_url":"https://api.github.com/users/vigreco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-24T18:42:55Z","updated_at":"2017-02-24T19:10:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/soldair/node-qrcode/pulls/64","html_url":"https://github.com/soldair/node-qrcode/pull/64","diff_url":"https://github.com/soldair/node-qrcode/pull/64.diff","patch_url":"https://github.com/soldair/node-qrcode/pull/64.patch"},"body":"Hi!\r\nI finally found some time to continue my work on this and propose some additions.\r\n\r\nThese changes add support for:\r\n  - Numeric, Alphanumeric and Kanji modes\r\n  - Mixed modes\r\n  - Auto generation of shortest possible bitstreams\r\n\r\nBy default is now used an `Auto mode` which split the input string in various segments with appropriate modes to generate the smallest possible qr code.\r\nAll the work is done in `Segments.js`. The best segments sequence is calculated using the Dijkstra algorithm.\r\nIs of course also possible to manually specify each segment and mode.\r\n\r\nSome note about Kanji mode: it needs a conversion table (utf8 to sjis) which takes a lot of space. It's almost big as the entire lib, so I've choose to not include it by default in the bundle.\r\nKanji support is provided by including an optional file which contains the conversion function. I'm not very happy with this solution, but I didn't found a better one 😞 .\r\n\r\nOther changes:\r\n  - `build.js` and `test.js` scripts have been updated to support the lastest changes.\r\n  - Added more tests to reach a 100% code coverage at least for the modules in `lib/core`\r\n  - Updated/restyled README.md with some new infos and a TOC.\r\n    _(I'm not a native english so I've probably made a lot of errors here 😄 . Please let me know and I'll fix them)_\r\n  - Updated/restyled `clientside` example to show the last implemented features.\r\n  - Public functions can now accept array with segment properties as input (See README.md for details).\r\n    _This doesn't change the API structure._\r\n  - Valid error correction levels value are now: `Low, Medium, Quartile, High` or `L, M, Q, H` as per QR code specs.\r\n    _Previous values are still supported for backward compatibility._\r\n  - Error correction level option param is now `errorCorrectionLevel`\r\n    _Previous param name is still supported for backward compatibility._\r\n  - Default error correction level is now `Medium` which offers a better compromise between error resistance and symbol capacity, since the generated qr code will be mostly shown in a browser."},"comment":{"url":"https://api.github.com/repos/soldair/node-qrcode/issues/comments/282377713","html_url":"https://github.com/soldair/node-qrcode/pull/64#issuecomment-282377713","issue_url":"https://api.github.com/repos/soldair/node-qrcode/issues/64","id":282377713,"user":{"login":"soldair","id":119903,"avatar_url":"https://avatars.githubusercontent.com/u/119903?v=3","gravatar_id":"","url":"https://api.github.com/users/soldair","html_url":"https://github.com/soldair","followers_url":"https://api.github.com/users/soldair/followers","following_url":"https://api.github.com/users/soldair/following{/other_user}","gists_url":"https://api.github.com/users/soldair/gists{/gist_id}","starred_url":"https://api.github.com/users/soldair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soldair/subscriptions","organizations_url":"https://api.github.com/users/soldair/orgs","repos_url":"https://api.github.com/users/soldair/repos","events_url":"https://api.github.com/users/soldair/events{/privacy}","received_events_url":"https://api.github.com/users/soldair/received_events","type":"User","site_admin":false},"created_at":"2017-02-24T19:10:57Z","updated_at":"2017-02-24T19:10:57Z","body":"wow awesome!"}}
{"actor":{"display_login":"soldair"}}