schwifty-er-diagram
v0.1.0
Published
generate ER diagrams w/ schwifty
Downloads
2
Readme
schwifty-er-diagram
generate ER diagrams w/ schwifty
Lead Maintainer - Devin Ivy
Installation
npm install schwifty-er-diagram
Usage
In order to enable the schwifty-er-diagram
hpal command, register this module as a hapi plugin on your hapi server:
await server.register(require('schwifty-er-diagram'));
Running hpal run schwifty-er-diagram
will output Mermaid markup for an ER diagram of the models on your hapi server registered using schwifty.
CLI Options
Usage: hpal run schwifty-er-diagram
Options:
-h, --help Show help
-p, --plugin Only include models from this plugin
-m, --model Allow list of models
-M, --no-model Disallow list of models
-b, --between Only look at relations between two models (ModelA..ModelB)
-l, --link Output a link to mermaid.live rather than markup