{"action":"created","issue":{"url":"https://api.github.com/repos/dankogai/js-base64/issues/81","repository_url":"https://api.github.com/repos/dankogai/js-base64","labels_url":"https://api.github.com/repos/dankogai/js-base64/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/dankogai/js-base64/issues/81/comments","events_url":"https://api.github.com/repos/dankogai/js-base64/issues/81/events","html_url":"https://github.com/dankogai/js-base64/issues/81","id":346056365,"node_id":"MDU6SXNzdWUzNDYwNTYzNjU=","number":81,"title":"What's the differents between this and 'Buffer'?","user":{"login":"YouCii","id":17899073,"node_id":"MDQ6VXNlcjE3ODk5MDcz","avatar_url":"https://avatars0.githubusercontent.com/u/17899073?v=4","gravatar_id":"","url":"https://api.github.com/users/YouCii","html_url":"https://github.com/YouCii","followers_url":"https://api.github.com/users/YouCii/followers","following_url":"https://api.github.com/users/YouCii/following{/other_user}","gists_url":"https://api.github.com/users/YouCii/gists{/gist_id}","starred_url":"https://api.github.com/users/YouCii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YouCii/subscriptions","organizations_url":"https://api.github.com/users/YouCii/orgs","repos_url":"https://api.github.com/users/YouCii/repos","events_url":"https://api.github.com/users/YouCii/events{/privacy}","received_events_url":"https://api.github.com/users/YouCii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-31T06:47:45Z","updated_at":"2018-08-01T03:01:55Z","closed_at":"2018-08-01T03:01:55Z","author_association":"NONE","body":"I can also encode/decode strings using Buffer that only dependent on one library `\"buffer\": \"^5.2.0\"`\r\n```\r\nimport {Buffer} from \"buffer\"\r\nexport default class EncodeUtils {\r\n    static encodeBase64Content(content) {\r\n        return new Buffer(content).toString('base64')\r\n    }\r\n    static decodeBase64Content(base64Content) {\r\n        return new Buffer(base64Content, 'base64').toString();\r\n    }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dankogai/js-base64/issues/comments/409433926","html_url":"https://github.com/dankogai/js-base64/issues/81#issuecomment-409433926","issue_url":"https://api.github.com/repos/dankogai/js-base64/issues/81","id":409433926,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTQzMzkyNg==","user":{"login":"dankogai","id":68812,"node_id":"MDQ6VXNlcjY4ODEy","avatar_url":"https://avatars3.githubusercontent.com/u/68812?v=4","gravatar_id":"","url":"https://api.github.com/users/dankogai","html_url":"https://github.com/dankogai","followers_url":"https://api.github.com/users/dankogai/followers","following_url":"https://api.github.com/users/dankogai/following{/other_user}","gists_url":"https://api.github.com/users/dankogai/gists{/gist_id}","starred_url":"https://api.github.com/users/dankogai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dankogai/subscriptions","organizations_url":"https://api.github.com/users/dankogai/orgs","repos_url":"https://api.github.com/users/dankogai/repos","events_url":"https://api.github.com/users/dankogai/events{/privacy}","received_events_url":"https://api.github.com/users/dankogai/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T03:01:55Z","updated_at":"2018-08-01T03:01:55Z","author_association":"OWNER","body":"`base64` of `Buffer` corresponds to `atob` and `btoa`, which differ from `.encode` and `.decode` of `Base64`.\r\n\r\nhttps://github.com/dankogai/js-base64#decode-vs-atob-and-encode-vs-btoa"}}
{"actor":{"display_login":"dankogai"}}