Ask HN: Best libraries for converting JavaScript comments to both docs and tests?
Basically, I'd like to automate docs and tests as much as possible from comments like this (or something similar):
/**
* Adds `b` to `a`.
*
* @param a {Number}
* @param b {Number}
* @return {Number}
* @api public
*/
function add (a, b) {
return a + b;
}
Obviously there are libraries that can do what I'm asking, but I'm having trouble finding the best one(s), so I figured I'd just ask here. :)