# graphviz-to-grafn

> Convert a graphviz graph to grafn code

Latest version **1.0.0** (published 2020-09-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install graphviz-to-grafn
pnpm add graphviz-to-grafn
yarn add graphviz-to-grafn
bun add graphviz-to-grafn
```

Provides the command `g2g`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-09-20 |
| First published | 2020-09-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Rubén Beltrán del Río |
| Maintainers | benbeltran |
| Keywords | graph, async, flow |

## Links

- npm: https://www.npmjs.com/package/graphviz-to-grafn
- Repository: https://gitlab.com/rbdr/graphviz-to-grafn
- Homepage: https://gitlab.com/rbdr/graphviz-to-grafn#readme
- Issues: https://gitlab.com/rbdr/graphviz-to-grafn/issues
- npm.io page: https://npm.io/package/graphviz-to-grafn

## Dependencies (1)

- [dotparser](https://npm.io/package/dotparser.md) ^1.0.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-09-20

## README

# Graphviz to Grafn

Converts graphviz .dot files to [Grafn][grafn] javascript code. This lets you
define your application flow using a diagram editor first, and then fill out
the functionality.

## How can I use it?

### As a Library

```javascript
const Fs = require('fs/promises');
const GraphvizToGrafn = require('grafn-to-graphviz');

async function convert() {
  const graphvizCode = await Fs.read('/path/to/graphviz.dot');
  const grafnCode = await GraphvizToGrafn(graphvizCode.toString());

  console.log(grafnCode); // will print the JS code
}
```

### As a Binary

```
$ npm install -g graphviz-to-grafn
$ cat ./path/to/graphviz.dot | g2g > grafn_code.js
```

[grafn]: https://gitlab.com/rbdr/grafn

---
_Source: https://npm.io/package/graphviz-to-grafn · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
