{"action":"created","issue":{"url":"https://api.github.com/repos/mdaines/viz.js/issues/47","labels_url":"https://api.github.com/repos/mdaines/viz.js/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/mdaines/viz.js/issues/47/comments","events_url":"https://api.github.com/repos/mdaines/viz.js/issues/47/events","html_url":"https://github.com/mdaines/viz.js/issues/47","id":113238274,"number":47,"title":"publish to npm","user":{"login":"vvakame","id":125332,"avatar_url":"https://avatars.githubusercontent.com/u/125332?v=3","gravatar_id":"","url":"https://api.github.com/users/vvakame","html_url":"https://github.com/vvakame","followers_url":"https://api.github.com/users/vvakame/followers","following_url":"https://api.github.com/users/vvakame/following{/other_user}","gists_url":"https://api.github.com/users/vvakame/gists{/gist_id}","starred_url":"https://api.github.com/users/vvakame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvakame/subscriptions","organizations_url":"https://api.github.com/users/vvakame/orgs","repos_url":"https://api.github.com/users/vvakame/repos","events_url":"https://api.github.com/users/vvakame/events{/privacy}","received_events_url":"https://api.github.com/users/vvakame/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-25T17:23:37Z","updated_at":"2015-10-27T03:59:04Z","closed_at":"2015-10-27T01:07:58Z","body":"please publish viz.js to npm.\r\nDo you merge pull request if I make a package.json and add [UMD](https://github.com/umdjs/umd) support?\r\n\r\n* add package.json\r\n* add UMD pattern. It make possible to load by browser and node.js context.\r\n* publish to npm\r\n\r\nusage.\r\n\r\n```\r\n$ cat sample.js\r\nvar Viz = require(\"viz.js\");\r\nvar result = Viz(\"digraph g { a -> b; }\");\r\nconsole.log(result);\r\n$ node sample.js\r\n<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\r\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\r\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\r\n<!-- Generated by graphviz version 2.38.0 (20140413.2041)\r\n -->\r\n<!-- Title: g Pages: 1 -->\r\n<svg width=\"62pt\" height=\"116pt\"\r\n viewBox=\"0.00 0.00 62.00 116.00\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n<g id=\"graph0\" class=\"graph\" transform=\"scale(1 1) rotate(0) translate(4 112)\">\r\n<title>g</title>\r\n<polygon fill=\"white\" stroke=\"none\" points=\"-4,4 -4,-112 58,-112 58,4 -4,4\"/>\r\n<!-- a -->\r\n<g id=\"node1\" class=\"node\"><title>a</title>\r\n<ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-90\" rx=\"27\" ry=\"18\"/>\r\n<text text-anchor=\"middle\" x=\"27\" y=\"-85.8\" font-family=\"Times,serif\" font-size=\"14.00\">a</text>\r\n</g>\r\n<!-- b -->\r\n<g id=\"node2\" class=\"node\"><title>b</title>\r\n<ellipse fill=\"none\" stroke=\"black\" cx=\"27\" cy=\"-18\" rx=\"27\" ry=\"18\"/>\r\n<text text-anchor=\"middle\" x=\"27\" y=\"-13.8\" font-family=\"Times,serif\" font-size=\"14.00\">b</text>\r\n</g>\r\n<!-- a&#45;&gt;b -->\r\n<g id=\"edge1\" class=\"edge\"><title>a&#45;&gt;b</title>\r\n<path fill=\"none\" stroke=\"black\" d=\"M27,-71.6966C27,-63.9827 27,-54.7125 27,-46.1124\"/>\r\n<polygon fill=\"black\" stroke=\"black\" points=\"30.5001,-46.1043 27,-36.1043 23.5001,-46.1044 30.5001,-46.1043\"/>\r\n</g>\r\n</g>\r\n</svg>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mdaines/viz.js/issues/comments/151366876","html_url":"https://github.com/mdaines/viz.js/issues/47#issuecomment-151366876","issue_url":"https://api.github.com/repos/mdaines/viz.js/issues/47","id":151366876,"user":{"login":"hashrock","id":3132889,"avatar_url":"https://avatars.githubusercontent.com/u/3132889?v=3","gravatar_id":"","url":"https://api.github.com/users/hashrock","html_url":"https://github.com/hashrock","followers_url":"https://api.github.com/users/hashrock/followers","following_url":"https://api.github.com/users/hashrock/following{/other_user}","gists_url":"https://api.github.com/users/hashrock/gists{/gist_id}","starred_url":"https://api.github.com/users/hashrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hashrock/subscriptions","organizations_url":"https://api.github.com/users/hashrock/orgs","repos_url":"https://api.github.com/users/hashrock/repos","events_url":"https://api.github.com/users/hashrock/events{/privacy}","received_events_url":"https://api.github.com/users/hashrock/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T03:59:04Z","updated_at":"2015-10-27T03:59:04Z","body":"How about publishing to both bower and npm?\r\nSome people prefer npm than bower."}}