{"action":"created","issue":{"url":"https://api.github.com/repos/joyent/node-manta/issues/239","labels_url":"https://api.github.com/repos/joyent/node-manta/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/joyent/node-manta/issues/239/comments","events_url":"https://api.github.com/repos/joyent/node-manta/issues/239/events","html_url":"https://github.com/joyent/node-manta/pull/239","id":105063123,"number":239,"title":"sugar around `msign -e`, fixes #61","user":{"login":"bahamas10","id":1205722,"avatar_url":"https://avatars.githubusercontent.com/u/1205722?v=3","gravatar_id":"","url":"https://api.github.com/users/bahamas10","html_url":"https://github.com/bahamas10","followers_url":"https://api.github.com/users/bahamas10/followers","following_url":"https://api.github.com/users/bahamas10/following{/other_user}","gists_url":"https://api.github.com/users/bahamas10/gists{/gist_id}","starred_url":"https://api.github.com/users/bahamas10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bahamas10/subscriptions","organizations_url":"https://api.github.com/users/bahamas10/orgs","repos_url":"https://api.github.com/users/bahamas10/repos","events_url":"https://api.github.com/users/bahamas10/events{/privacy}","received_events_url":"https://api.github.com/users/bahamas10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-06T02:00:29Z","updated_at":"2016-01-19T17:49:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joyent/node-manta/pulls/239","html_url":"https://github.com/joyent/node-manta/pull/239","diff_url":"https://github.com/joyent/node-manta/pull/239.diff","patch_url":"https://github.com/joyent/node-manta/pull/239.patch"},"body":"- `msign -e 5s ~~/foo` - expires in 5 seconds\r\n- `msign -e 5m ~~/foo` - expires in 5 minutes\r\n- `msign -e 5h ~~/foo` - expires in 5 hours\r\n- `msign -e 5d ~~/foo` - expires in 5 days\r\n- `msign -e 5w ~~/foo` - expires in 5 weeks\r\n- `msign -e 5y ~~/foo` - expires in 5 years\r\n- `msign -e 123456 ~~/foo` - expires at epoch 123456\r\n\r\nfully backwards compatible... opt-in new behavior.\r\n\r\ncc @jperkin @jclulow @trentm \r\n\r\n[edit]wrote backwards incompatible, meant compatible[/edit]"},"comment":{"url":"https://api.github.com/repos/joyent/node-manta/issues/comments/172931576","html_url":"https://github.com/joyent/node-manta/pull/239#issuecomment-172931576","issue_url":"https://api.github.com/repos/joyent/node-manta/issues/239","id":172931576,"user":{"login":"trentm","id":46866,"avatar_url":"https://avatars.githubusercontent.com/u/46866?v=3","gravatar_id":"","url":"https://api.github.com/users/trentm","html_url":"https://github.com/trentm","followers_url":"https://api.github.com/users/trentm/followers","following_url":"https://api.github.com/users/trentm/following{/other_user}","gists_url":"https://api.github.com/users/trentm/gists{/gist_id}","starred_url":"https://api.github.com/users/trentm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trentm/subscriptions","organizations_url":"https://api.github.com/users/trentm/orgs","repos_url":"https://api.github.com/users/trentm/repos","events_url":"https://api.github.com/users/trentm/events{/privacy}","received_events_url":"https://api.github.com/users/trentm/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T17:49:02Z","updated_at":"2016-01-19T17:49:02Z","body":"@jclulow Is the concern that someone accidentally fat-finger and forget the trailing letter, to get an expiry that is, say, 7 seconds after the epoch, instead of, say, an intended 7 days?\r\n\r\nI like not having two separate options for expiration.  Ceding the lowercase letter option to \"seconds since epoch\" is unfortunate. I bet most users can't quickly get a value they want for that on first try.\r\n\r\nSome other comments:\r\n\r\n- Adding support for a `DATE.toISOString()` (ISO 8601) string would be nice too, if it doesn't result in conflicts.\r\n- @bahamas10 Without the dashdash 'positiveInteger' guard on the option arg, you can't just rely on `parseInt` here:\r\n\r\n```\r\n> parseInt('13flustrons')\r\n13\r\n> parseInt('42parsecs')\r\n42\r\n```"}}