Socket
Socket
Sign inDemoInstall

dotparser

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dotparser

Parser of GraphViz dot file format


Version published
Weekly downloads
10K
decreased by-12.3%
Maintainers
1
Install size
311 kB
Created
Weekly downloads
 

Readme

Source

dotparser

Parser of GraphViz dot file format.

Build Status

usage

 var parse = require('dotparser');
 var ast = parse('graph g {}');

 // ast is now an abstract syntax tree of an empty graph:
 // [{
 //   "type": "graph",
 //   "children": [],
 //   "id": "g"
 // }]

why?

The produced output is not bound to any specific graph library. It can be used by graph library authors to transform dot files into their own graph representation.

This implementation is capable of parsing all graphs from standard graphviz test suite.

install

With npm do:

npm install dotparser

compiling grammar

If you've changed grammar and want to have an updated parser, run this:

npm start

This will generate a new parser and save it into grammar/dot.js file

license

MIT

Keywords

FAQs

Last updated on 08 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc