Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamataryo/vargraph
https://github.com/kamataryo/vargraph
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kamataryo/vargraph
- Owner: kamataryo
- Created: 2018-12-18T07:46:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T07:54:18.000Z (about 6 years ago)
- Last Synced: 2024-12-19T01:24:13.584Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @kamataryo/vargraph
[![Build Status](https://travis-ci.org/kamataryo/vargraph.svg?branch=master)](https://travis-ci.org/kamataryo/vargraph)
A simple JavaScript variable analyzer.# usage
## JavaScript library
```javascript
import vargraph from '@kamataryo/vargraph'const code = `
const a = 1
const b = a + 1
`vargraph(code)
// {
// a: { incomes: ['b'], outcomes: [] },
// b: { incomes: [], outcomes: ['a'] }
// }
```## CLI
```shell
$ npx @kamataryo/vargraph path/to/code.js
```