{"size": 304, "ext": "js", "max_stars_repo_path": "fiddles/node/fiddle-0013-CouchDB/delete-db.js", "max_stars_repo_name": "oneorthomedical/house", "max_stars_repo_stars_event_min_datetime": "2016-01-06T14:34:26.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-14T16:10:36.000Z", "max_issues_repo_path": "fiddles/node/fiddle-0013-CouchDB/delete-db.js", "max_issues_repo_name": "oneorthomedical/house", "max_issues_repo_issues_event_min_datetime": "2016-05-28T12:35:22.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T14:57:06.000Z", "max_forks_repo_path": "fiddles/node/fiddle-0013-CouchDB/delete-db.js", "max_forks_repo_name": "oneorthomedical/house", "max_forks_repo_forks_event_min_datetime": "2015-11-07T06:39:17.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-22T18:59:14.000Z"}
{"max_stars_count": 48, "max_issues_count": 311, "max_forks_count": 33, "avg_line_length": 21.7142857143, "max_line_length": 53, "alphanum_fraction": 0.6578947368}
#!/usr/bin/env node --harmony

'use strict';
const
  dbname = process.argv[2],
  db = 'http://localhost:5984/' + dbname;
if (!dbname) {
  throw Error('No database name provided');
}
require('request').del(db, function(err, res, body) {
  console.log(res.statusCode);
  console.log(JSON.parse(body));
});
