# ngraph.toprotobuf

> Stores ngraph instance into protobuf format on disk

Latest version **0.3.0** (published 2016-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install ngraph.toprotobuf
pnpm add ngraph.toprotobuf
yarn add ngraph.toprotobuf
bun add ngraph.toprotobuf
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2016-09-18 |
| First published | 2016-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+11 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andrei Kashcha |
| Maintainers | anvaka |
| Keywords | ngrpah, protobuf |

## Links

- npm: https://www.npmjs.com/package/ngraph.toprotobuf
- Repository: https://github.com/anvaka/ngraph.toprotobuf
- Homepage: https://github.com/anvaka/ngraph.toprotobuf#readme
- Issues: https://github.com/anvaka/ngraph.toprotobuf/issues
- npm.io page: https://npm.io/package/ngraph.toprotobuf

## Dependencies (3)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1
- [protobufjs](https://npm.io/package/protobufjs.md) ^5.0.1
- [ngraph.merge](https://npm.io/package/ngraph.merge.md) 0.0.1

## Recent versions

- 0.3.0 (latest) — 2016-09-18
- 0.2.1 — 2016-09-13
- 0.2.0 — 2016-09-01
- 0.1.1 — 2016-09-01
- 0.1.0 — 2016-08-27

## README

# ngraph.toprotobuf

Stores ngraph instance into protobuf format on disk

# usage

To save a graph:

``` js
// let's say `graph` is an instance of ngraph.graph
var toProtoBuf = require('ngraph.toprotobuf')

// this will save graph into 'data' folder
toProtoBuf(graph, {
  outDir: 'data'
});
```

Note: This module does not oficially support reading from the protobuf, but you can 
take a look how it could be done, by following [readPrimitive.js](https://github.com/anvaka/ngraph.toprotobuf/blob/90006966341eed5b23f1ac395a3d21992b817766/readPrimitive.js) code.

# license

MIT

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