erdiagram
v0.1.4
Published
A viewer of ER diagrams
Downloads
29
Maintainers
Readme
erDiagram
A viewer of ER diagrams.
Installation
npm install erdiagram --save
Usage
import { exporter } from '@dbml/core';
import { ErDiagram } from 'erdiagram';
import source from './example.dbml';
const json = exporter.export(source, 'json');
const erd = new ErDiagram({
container: document.querySelector('#container')
});
erd.fromJSON(JSON.parse(json));