{"size": 627, "ext": "js", "max_stars_repo_path": "proc/classobj.js", "max_stars_repo_name": "kellmant/node", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "proc/classobj.js", "max_issues_repo_name": "kellmant/node", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "proc/classobj.js", "max_forks_repo_name": "kellmant/node", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.2222222222, "max_line_length": 87, "alphanum_fraction": 0.5598086124}
const setKey = require('../msgbus/setkey')
const msgBus = require('../msgbus/stream')
const myObject = require('../class/object')

module.exports = async (x) => {
	try {
		for (var i in x) {
			for (var j in x[i]) {
				const myObjs = Object.keys(x[i][j]).reduce((p, c) => ({...p, [c]: x[i][j][c]}), {})
				const h = new myObject(myObjs)
				const fnType = h.oftype()
				console.log(fnType)
				const key = h.key()
				const objval = h[`${fnType}`]()
				const vals = JSON.stringify(objval)
				console.log(key + ' => ' + vals)
				//console.log(h)
				setKey(key, vals)
			}
		}
	} catch (err) {
		console.error(err)
	}
}


