{"bugs":{"url":"https://github.com/mdaines/viz.js/issues"},"dist":{"shasum":"1e4c17013d93698c4b3bd8b10cc6dc28a8d2663e","tarball":"https://registry.npmjs.org/viz.js/-/viz.js-2.0.0-pre.4.tgz","fileCount":7,"integrity":"sha512-ac732BkeYx9ePzOLu7GR3h1jv9LYW0V/NyG/k7RaxG9YiSs2BTJoTRA/fzXytq7PSR/apA1exYngRxSdWUK1RQ==","signatures":[{"sig":"MEYCIQCuwYwb6IY3SxXMmjZhvXfhSJv53RJaj3fOk5h8GhzLDQIhANIMhUJaaNJz+4lgjPIdC3M5bdhQ+hfWmW9nu3XnuH8k","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3434019},"main":"viz.js","name":"viz.js","files":["viz.js","full.module","lite.module","index.d.ts"],"author":{"name":"Mike Daines","email":"mdaines@fastmail.com"},"readme":"# Viz.js\n\n[![Build Status](https://travis-ci.org/mdaines/viz.js.svg?branch=master)](https://travis-ci.org/mdaines/viz.js)\n\nThis project builds [Graphviz](http://www.graphviz.org) with [Emscripten](http://kripken.github.io/emscripten-site/) and provides a simple wrapper for using it in the browser.\n\n## Getting Viz.js\n\nTo install with Yarn:\n\n    yarn add viz.js\n\nOr download from the [releases page](https://github.com/mdaines/viz.js/releases).\n\n## Usage\n\nRendering a graph as an SVG element using a Web Worker:\n\n    let viz = new Viz({ worker: 'path/to/full.module' );\n    \n    viz.renderSVGElement('digraph { a -> b; }')\n    .then(element => {\n      document.body.appendChild(element);\n    });\n\nThe input to `renderSVGElement` is a graph in the [DOT language](http://www.graphviz.org/content/dot-language).\n\nFor more information, see the [API documentation](https://github.com/mdaines/viz.js/wiki/API).\n\n## Building Viz.js\n\nTo build from source, you will need to [install the Emscripten SDK](http://kripken.github.io/emscripten-site/docs/getting_started/index.html).\n\nThen, install the development dependencies using Yarn:\n\n    yarn install\n\nThe build process for Viz.js is split into two parts: building the Graphviz and Expat dependencies, and building the \"modules\" and the main `viz.js` script.\n\n    make deps\n    make all\n\n## Running Browser Tests\n\nThe browser tests can be run locally using Selenium WebDriver.\n\nFirst, serve the project directory at http://localhost:8000. For example:\n\n    python -m SimpleHTTPServer\n    \nThen, run tests using test-browser/runner.js. For example, to run `test-browser/full.html` in Chrome:\n\n    node test-browser/runner --file full.html --browser chrome\n","browser":{"fs":false,"path":false,"crypto":false},"gitHead":"64dfe0b97b133411eef0784dda860ab6df4d7a23","license":"MIT","_npmUser":{"name":"mdaines","email":"mdaines@fastmail.com"},"homepage":"https://github.com/mdaines/viz.js","keywords":["graphviz","emscripten"],"deprecated":"2.x is no longer supported, 3.x published as @viz-js/viz","repository":{"url":"git+https://github.com/mdaines/viz.js.git","type":"git"},"_npmVersion":"5.6.0","description":"A hack to put Graphviz on the web.","directories":{},"maintainers":[{"name":"antimatter15","email":"antimatter15@gmail.com"},{"name":"mdaines","email":"mdaines@fastmail.com"}],"_nodeVersion":"9.11.1","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"bluebird":"^3.5.1","minimist":"^1.2.0","babel-cli":"^6.26.0","typescript":"^2.7.2","babel-preset-env":"^1.6.1","selenium-webdriver":"^2.45.1","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-es2015-modules-umd":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-es2015-destructuring":"^6.23.0"},"_npmOperationalInternal":{"tmp":"tmp/viz.js_2.0.0-pre.4_1523642037596_0.27192912479219755","host":"s3://npm-registry-packages"},"_id":"viz.js@2.0.0-pre.4","version":"2.0.0-pre.4"}