{"action":"closed","issue":{"url":"https://api.github.com/repos/postmanlabs/newman/issues/210","labels_url":"https://api.github.com/repos/postmanlabs/newman/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/postmanlabs/newman/issues/210/comments","events_url":"https://api.github.com/repos/postmanlabs/newman/issues/210/events","html_url":"https://github.com/postmanlabs/newman/issues/210","id":86801769,"number":210,"title":"Add node-uuid to globals so postman and newman requests can generate UUID strings","user":{"login":"xiphiaz","id":721513,"avatar_url":"https://avatars.githubusercontent.com/u/721513?v=3","gravatar_id":"","url":"https://api.github.com/users/xiphiaz","html_url":"https://github.com/xiphiaz","followers_url":"https://api.github.com/users/xiphiaz/followers","following_url":"https://api.github.com/users/xiphiaz/following{/other_user}","gists_url":"https://api.github.com/users/xiphiaz/gists{/gist_id}","starred_url":"https://api.github.com/users/xiphiaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiphiaz/subscriptions","organizations_url":"https://api.github.com/users/xiphiaz/orgs","repos_url":"https://api.github.com/users/xiphiaz/repos","events_url":"https://api.github.com/users/xiphiaz/events{/privacy}","received_events_url":"https://api.github.com/users/xiphiaz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-10T02:05:12Z","updated_at":"2015-06-16T04:34:20Z","closed_at":"2015-06-16T04:34:20Z","body":"`node-uuid` is already a dependency, can it be added to postman and newman so tests & pre-request scripts have access?\r\n\r\nWe have a need where our clients generate a uuid for entity creation so we are currently doing a clumsy hack ie \r\n\r\n```js\r\nvar uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\r\n    var r = Math.random() * 16 | 0, v = c == 'x' ? r : r & 0x3 | 0x8;\r\n    return v.toString(16);\r\n});\r\npostman.setGlobalVariable(\"newUuid\", uuid);\r\n```\r\n\r\nInstead we would like to do \r\n```js\r\npostman.setGlobalVariable(\"newUuid, uuid.v4()\");\r\n```"}}