Skip to content

hg-FF/neo-riven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NēoRiven

A Node friendly re-implementation of Riven.

Installation

Install it by running

$ yarn add neo-riven
# or
$ npm i -s neo-riven

Usage.

The selector must be bound to the Riven instance.

import Riven from 'neo-riven'
const rvn = new Riven()

const { Ø } = rvn.bind() // Now the selector is bound to the Riven instance.

Nodes are defined as classes:

class ConsoleNode extends Riven.Node {
	constructor(ctx, id, rect) {
		super(ctx, id, rect)
		this.glyph = Riven.NODE_GLYPHS.render
	}

	receive(q) {
		console.log(q)
	}
}

About

A Node friendly re-implementation of Riven.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published