{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/53","labels_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/53/comments","events_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/53/events","html_url":"https://github.com/ipfs/node-ipfs-api/pull/53","id":103824828,"number":53,"title":"expose Buffer","user":{"login":"krl","id":59379,"avatar_url":"https://avatars.githubusercontent.com/u/59379?v=3","gravatar_id":"","url":"https://api.github.com/users/krl","html_url":"https://github.com/krl","followers_url":"https://api.github.com/users/krl/followers","following_url":"https://api.github.com/users/krl/following{/other_user}","gists_url":"https://api.github.com/users/krl/gists{/gist_id}","starred_url":"https://api.github.com/users/krl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krl/subscriptions","organizations_url":"https://api.github.com/users/krl/orgs","repos_url":"https://api.github.com/users/krl/repos","events_url":"https://api.github.com/users/krl/events{/privacy}","received_events_url":"https://api.github.com/users/krl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-29T03:19:42Z","updated_at":"2015-09-02T21:26:21Z","closed_at":"2015-08-31T17:09:47Z","pull_request":{"url":"https://api.github.com/repos/ipfs/node-ipfs-api/pulls/53","html_url":"https://github.com/ipfs/node-ipfs-api/pull/53","diff_url":"https://github.com/ipfs/node-ipfs-api/pull/53.diff","patch_url":"https://github.com/ipfs/node-ipfs-api/pull/53.patch"},"body":"In order to make add work in the browser with the standalone browser, we need to access the Buffer object, it seems importing the browser-buffer as standalone trips up vinyl somehow.\r\n\r\nThis is not ideal, but unless we can find a way to make adding files from buffers really portable, it seems ok.\r\n\r\nThe three cases are:\r\n\r\n* node, just works\r\n* browserify, works\r\n* standalone module in browser, not without exposing browserifys Buffer"},"comment":{"url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/comments/137249216","html_url":"https://github.com/ipfs/node-ipfs-api/pull/53#issuecomment-137249216","issue_url":"https://api.github.com/repos/ipfs/node-ipfs-api/issues/53","id":137249216,"user":{"login":"harlantwood","id":38769,"avatar_url":"https://avatars.githubusercontent.com/u/38769?v=3","gravatar_id":"","url":"https://api.github.com/users/harlantwood","html_url":"https://github.com/harlantwood","followers_url":"https://api.github.com/users/harlantwood/followers","following_url":"https://api.github.com/users/harlantwood/following{/other_user}","gists_url":"https://api.github.com/users/harlantwood/gists{/gist_id}","starred_url":"https://api.github.com/users/harlantwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlantwood/subscriptions","organizations_url":"https://api.github.com/users/harlantwood/orgs","repos_url":"https://api.github.com/users/harlantwood/repos","events_url":"https://api.github.com/users/harlantwood/events{/privacy}","received_events_url":"https://api.github.com/users/harlantwood/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T21:26:21Z","updated_at":"2015-09-02T21:26:21Z","body":"Probably worth pushing out an NPM release for this, it's quite useful. "}}