{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/420","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/420/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/420/events","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/issues/420","id":59655761,"number":420,"title":"Allow reading only n tail bytes from a file","user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/labels/storage","name":"storage","color":"fad8c7"}],"state":"open","locked":false,"assignee":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/milestones/7","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/milestones/Storage%20Future","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/milestones/7/labels","id":961393,"number":7,"title":"Storage Future","description":"","creator":{"login":"jgeewax","id":112928,"avatar_url":"https://avatars.githubusercontent.com/u/112928?v=3","gravatar_id":"","url":"https://api.github.com/users/jgeewax","html_url":"https://github.com/jgeewax","followers_url":"https://api.github.com/users/jgeewax/followers","following_url":"https://api.github.com/users/jgeewax/following{/other_user}","gists_url":"https://api.github.com/users/jgeewax/gists{/gist_id}","starred_url":"https://api.github.com/users/jgeewax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgeewax/subscriptions","organizations_url":"https://api.github.com/users/jgeewax/orgs","repos_url":"https://api.github.com/users/jgeewax/repos","events_url":"https://api.github.com/users/jgeewax/events{/privacy}","received_events_url":"https://api.github.com/users/jgeewax/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":8,"state":"open","created_at":"2015-02-02T13:30:53Z","updated_at":"2015-06-08T15:03:21Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-03T15:17:54Z","updated_at":"2015-07-01T21:10:11Z","closed_at":null,"body":"Carrying on from #415, a user can specify a `start` and `end` range to read from a remote file. The JSON API also allows reading *n* tail bytes from a file, e.g. `range=-100` would be the last 100 bytes. Our API currently looks like:\r\n\r\n```js\r\nfile.createReadStream({ start: 0, end: 10 })\r\n```\r\n\r\nWe could allow specifying a range in another way:\r\n\r\n```js\r\nfile.createReadStream({ range: \"0-10\" })\r\n```\r\n\r\nWhich would open the doors for:\r\n\r\n```js\r\nfile.createReadStream({ range: \"-100\" })\r\n```\r\n\r\nDefinitely open to other ideas of how we can support ranges of both types: \"start and end\" and \"end offset\".\r\n\r\nNote: `start` and `end` was added to match the native `fs` module's createReadStream's arguments, which behaves the same was currently as ours."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/comments/117825547","html_url":"https://github.com/GoogleCloudPlatform/gcloud-node/issues/420#issuecomment-117825547","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-node/issues/420","id":117825547,"user":{"login":"stephenplusplus","id":723048,"avatar_url":"https://avatars.githubusercontent.com/u/723048?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenplusplus","html_url":"https://github.com/stephenplusplus","followers_url":"https://api.github.com/users/stephenplusplus/followers","following_url":"https://api.github.com/users/stephenplusplus/following{/other_user}","gists_url":"https://api.github.com/users/stephenplusplus/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenplusplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenplusplus/subscriptions","organizations_url":"https://api.github.com/users/stephenplusplus/orgs","repos_url":"https://api.github.com/users/stephenplusplus/repos","events_url":"https://api.github.com/users/stephenplusplus/events{/privacy}","received_events_url":"https://api.github.com/users/stephenplusplus/received_events","type":"User","site_admin":false},"created_at":"2015-07-01T21:10:11Z","updated_at":"2015-07-01T21:10:11Z","body":"Cool cool. Let's try it out and if we find the community hates it, we can try again!"}}