bscript-render

0.1.2 • Public • Published

bscript-render

Renders blessed elements from a bscript tree

npm version Dependency Status js-standard-style

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

Readme

Keywords

Package Sidebar

Install

npm i bscript-render

Weekly Downloads

6

Version

0.1.2

License

MIT

Last publish

Collaborators

  • mattstyles