bscript-render
v0.1.2
Published
Renders blessed elements from a bscript tree
Downloads
4
Readme
bscript-render
Renders blessed elements from a bscript tree
Install
Install with npm
$ npm i -S bscript-render
Example
const bscript-render = require('bscript-render')
Usage
const blessed = require('blessed')
const render = require('bscript-render')
const b = require('bscript-tree')
const screen = blessed.screen()
let tree = b('box', {
top: 0,
left: 0,
width: 100%,
height: 1
}, 'Hello')
render(tree, screen)
Running tests
$ npm install
$ npm test
Contributing
Pull requests are always welcome, the project uses the standard code style. Please run npm test
to ensure all tests are passing and add tests for any new features or updates.
For bugs and feature requests, please create an issue.
License
MIT