Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anvaka/ngraph.toprotobuf
Stores ngraph instance into protobuf format on disk
https://github.com/anvaka/ngraph.toprotobuf
Last synced: about 1 month ago
JSON representation
Stores ngraph instance into protobuf format on disk
- Host: GitHub
- URL: https://github.com/anvaka/ngraph.toprotobuf
- Owner: anvaka
- License: mit
- Created: 2016-08-27T21:19:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-18T07:26:44.000Z (about 8 years ago)
- Last Synced: 2024-07-25T22:53:59.065Z (5 months ago)
- Language: JavaScript
- Size: 17.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - anvaka/ngraph.toprotobuf - Stores ngraph instance into protobuf format on disk (others)
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