Package Exports
- bscript-render
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bscript-render) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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