erdiagram

0.1.4 • Public • Published

erDiagram

A viewer of ER diagrams.

npm github node

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));

Package Sidebar

Install

npm i erdiagram

Weekly Downloads

8

Version

0.1.4

License

MIT

Unpacked Size

21.6 kB

Total Files

11

Last publish

Collaborators

  • airkro