Skip to content

d1soft/burntsushi-erd-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BurntSushiErdNode

It is BurntSushi/erd Node.js wrapper

Info

Only UNIX supported!

After package install executed instal.sh. Sudo required.
This script will install system dependecies graphviz, stack and build BurntSushi/erd.
First build be long (10-15 minutes).
Also script copy executable to /usr/bin.

Guide

Install:

npm install -S -e burntsushierdnode 

yarn add -E burntsushierdnode

Options

Name Description Default
input Path to .er file
output Path to output file
bin Path to binary file ../bin/erd or ../bin/erd.exe

Usage

Also you can find example here

const { generate } = require('../src/index');

generate({
    input: './erd.er',
    output: './erd.svg'
});

TODO

  • Typings
  • Install and build binaries platform dependent
    • Windows
    • UNIX
    • OSx
  • Replace binary to node_modules/.bin