JSPM

bscript-render

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q30589F
  • License MIT

Renders blessed elements from a bscript tree

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

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