{"size": 218, "ext": "js", "max_stars_repo_path": "koa2-learn/middleware/m2.js", "max_stars_repo_name": "kingwfree/koa-note", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "koa2-learn/middleware/m2.js", "max_issues_repo_name": "kingwfree/koa-note", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "koa2-learn/middleware/m2.js", "max_forks_repo_name": "kingwfree/koa-note", "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": 18.1666666667, "max_line_length": 36, "alphanum_fraction": 0.5412844037}
function m2(ctx) {
    console.log('m2')
}

module.exports = function () {
    return async function(ctx,next){
        console.log('m2 start')
        m2(ctx)
        await next()
        console.log('m2 end')
    }
}