Quick n easy Node.js app document generator.
Works for tree structured module(Everythihng needs to rest within one global object)
Everything is under preparation. Currently checking everything. Dont't touch until this reaches 1.0.0 or higher.
Install it as devDependencies. Type following at your project root.
npm install loose-node-doc --save-dev
Create your generator script(gen-script.js in this page). In the script:
- require loose-node-doc.
- require your app.
- set options for loose-node-doc.
- then call generate method.
- done
<loose-node-doc>.generate(app_object,options) :
- This method is the only method provided by loose-node-doc.
Arguments:
- target app object (required).
- options (optional)
Your generator script might look like this.
//require loose-node-doc before your app.
var lnd = require("loose-node-doc");
var my_app = require("my_app/entry_point");
var options = {
//using autocompletion
lnd.options.lang.key:lnd.langs.en.US,
}
lnd.generate(my_app,options);//running
Run your genrator script.
node gen-script.js
done.
See options page for more information.
Developed on :
- Node.js (v12.13.0)
- Windows 10 (not really checking anything on any other OSes)
Everything should be ok by version 1.0.0.
If this project doesn't get updated, then that's a good news.
Future updates might be of:
- Internationalization
- Bug fixes
- Presentation (homepage,typofix,Q&A...)