erdia
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

ERdia

ERdia is create ER Diagram and Database schema table using by TypeORM and mermiad.js

Download Status Github Star Github Issues NPM version License

Automate your database ER diagram drawing!

Erdia showcase

Erdia showcase

Install

npm install --save-dev erdia

Usage

erdia html -d [your dataSource path] -o table.html -o erdiagram.html

Requirement

  • TypeORM 0.3.x

Example

Output Format

ERdia support html, markdown, pdf, svg, png. Database schema table only support html, markdown, pdf format.

# PDF document generate
erdia pdf -d [your dataSourcePath] -o table.pdf -o entity.pdf

TypeScript and Re-Map Paths

ts-node -r tsconfig-paths/register ./node_modules/.bin/erdia er -d [your dataSource path]

ERdia load dataSource file using TypeORM module. If you use module resolution need additional parameter need for successfully execution. You have to pass tsconfig-paths/register. See ts-node paths and baseUrl section

Install

npm i erdia

DownloadsWeekly Downloads

1,817

Version

2.2.1

License

MIT

Unpacked Size

446 kB

Total Files

10

Last publish

Collaborators

  • jooni