{"size": 1439, "ext": "js", "max_stars_repo_path": "test.js", "max_stars_repo_name": "milanmdev/dudb.js", "max_stars_repo_stars_event_min_datetime": "2020-11-28T04:44:56.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-07T22:27:05.000Z", "max_issues_repo_path": "test.js", "max_issues_repo_name": "milanmdev/dudb.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test.js", "max_forks_repo_name": "milanmdev/dudb.js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 8, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 39.9722222222, "max_line_length": 149, "alphanum_fraction": 0.6650451703}
const dudb = require(__dirname+"/index.js");
const token = "NOTOKEN";

(async () => {

/* check Testing */

/* check (200 OK) */ await dudb.check("423203831971708958").then(result => console.log(result));

/* check (error 400) */ await dudb.check("NOTANACCOUNT").then(result => console.log(result));

// /* check (error "TypeError: User ID must be a string") */ await dudb.check().then(result => console.log(result));

/* check (error 401) */ await dudb.check("").then(result => console.log(result));





/* report Testing */

/* report (200 OK) */ await dudb.report("1234", token, "testing").then(result => console.log(result));

/* report (error "TypeError: User ID must be an integer") */ await dudb.report("NOTANACCOUNT", token, "testing").then(result => console.log(result));

/* report (error "Error, invalid API key.") */ await dudb.report("1234", "NOTATOKEN", "testing").then(result => console.log(result));

/* report (error "TypeError: You must specify a reason for this report") */ await dudb.report("1234", token).then(result => console.log(result));

/* report (error "TypeError: User ID must be a string") */ await dudb.report().then(result => console.log(result));

/* report (error "TypeError: You must specify an API key") */ await dudb.report("").then(result => console.log(result));

/* report (error "TypeError: You must specify an API key") */ await dudb.report("", "", "").then(result => console.log(result));

})();