Currently one node application that scrapes Chai TDD and Chai BDD library websites for:
- Method names.
- Method signatures.
- Optional parameters.
- Parameter type information.
- Parameter descriptions.
- Method description.
- Method examples.
- Link to documentation.
The information can be used by the Tern code analysis
engine when transformed into a file in the tern-def format. The output file is
placed in the node_modules/tern/defs/
library and be included in a
.tern-project
file like so:
{
"libs": [ "chai" ],
"loadEagerly": [],
"plugins": {}
}
Run it like this:
node chai/chai-def.js