{"url":"https://api.github.com/gists/5455427","forks_url":"https://api.github.com/gists/5455427/forks","commits_url":"https://api.github.com/gists/5455427/commits","id":"5455427","node_id":"MDQ6R2lzdDU0NTU0Mjc=","git_pull_url":"https://gist.github.com/5455427.git","git_push_url":"https://gist.github.com/5455427.git","html_url":"https://gist.github.com/mbostock/5455427","files":{".block":{"filename":".block","type":"text/plain","language":null,"raw_url":"https://gist.githubusercontent.com/mbostock/5455427/raw/703d310b399098a243a76a50bc209167e924cfd2/.block","size":17,"truncated":false,"content":"license: gpl-3.0\n","encoding":"utf-8"},"README.md":{"filename":"README.md","type":"text/markdown","language":"Markdown","raw_url":"https://gist.githubusercontent.com/mbostock/5455427/raw/c218096005567d7ffa40df79f1a2c208a0e82fda/README.md","size":148,"truncated":false,"content":"You’ll need to `npm install d3` and make the script executable (`chmod u+x csv2tsv`). Then you can run it like `./csv2tsv input.csv > output.tsv`.","encoding":"utf-8"},"csv2tsv":{"filename":"csv2tsv","type":"text/plain","language":"JavaScript","raw_url":"https://gist.githubusercontent.com/mbostock/5455427/raw/55451be53d643b388708bc03ca3f11315a44e8b8/csv2tsv","size":188,"truncated":false,"content":"#!/usr/bin/env node\n\nvar fs = require(\"fs\"),\n    d3 = require(\"d3\"); // require(\"dsv\") would work, too\n\nconsole.log(d3.tsv.format(d3.csv.parse(fs.readFileSync(process.argv[2], \"utf8\"))));\n","encoding":"utf-8"}},"public":true,"created_at":"2013-04-24T20:45:02Z","updated_at":"2016-02-09T02:06:08Z","description":"csv2tsv","comments":0,"user":null,"comments_enabled":true,"comments_url":"https://api.github.com/gists/5455427/comments","owner":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"forks":[],"history":[{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"2eec1fefbc4ae10bfcf41d9254fc26f6ca9c0c45","committed_at":"2016-02-09T02:06:04Z","change_status":{"total":1,"additions":1,"deletions":0},"url":"https://api.github.com/gists/5455427/2eec1fefbc4ae10bfcf41d9254fc26f6ca9c0c45"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"50a7a686e7ff8b88b2d5207001a235ba0fe60c59","committed_at":"2013-04-24T21:02:11Z","change_status":{"total":3,"additions":2,"deletions":1},"url":"https://api.github.com/gists/5455427/50a7a686e7ff8b88b2d5207001a235ba0fe60c59"},{"user":{"login":"mbostock","id":230541,"node_id":"MDQ6VXNlcjIzMDU0MQ==","avatar_url":"https://avatars.githubusercontent.com/u/230541?v=4","gravatar_id":"","url":"https://api.github.com/users/mbostock","html_url":"https://github.com/mbostock","followers_url":"https://api.github.com/users/mbostock/followers","following_url":"https://api.github.com/users/mbostock/following{/other_user}","gists_url":"https://api.github.com/users/mbostock/gists{/gist_id}","starred_url":"https://api.github.com/users/mbostock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbostock/subscriptions","organizations_url":"https://api.github.com/users/mbostock/orgs","repos_url":"https://api.github.com/users/mbostock/repos","events_url":"https://api.github.com/users/mbostock/events{/privacy}","received_events_url":"https://api.github.com/users/mbostock/received_events","type":"User","user_view_type":"public","site_admin":false},"version":"f0bff0d2bc20d9a1b0ed4c3b9fea9830395dae05","committed_at":"2013-04-24T20:45:02Z","change_status":{"total":6,"additions":6,"deletions":0},"url":"https://api.github.com/gists/5455427/f0bff0d2bc20d9a1b0ed4c3b9fea9830395dae05"}],"truncated":false}