pterodactyl
v0.1.0
Published
node-pterodactyl ================ ![node-pterodactyl][logo]
Downloads
3
Readme
node-pterodactyl
wut?
Pterodactyl is a fractal tree visualizer. Display an arbitrary javascript object. By leveraging fractal geometry and vector graphics, pterodactyl can display vast amounts of information in a finite amount of space.
hack about
on requireBin
or locally:
git clone [email protected]:kumavis/node-pterodactyl.git
cd node-pterodactyl
npm install -g beefy
npm install
npm start
examples
some random object
var pterodactyl = require('pterodactyl')
var obj = {
a: 1,
b: {
d: 3,
e: 4,
},
c: 2,
}
pterodactyl.drawHash({
target: obj,
x: 500,
y: 500,
})
esprima syntax tree
var pterodactyl = require('pterodactyl')
var esprima = require('esprima')
var src = "var x = 1 + 2"
var obj = esprima.parse(src)
pterodactyl.drawHash({
target: obj,
x: 500,
y: 500,
})