Skip to content

🌐 A package to parse VBML to Vestaboard character arrays

Notifications You must be signed in to change notification settings

Vestaboard/vbml

Repository files navigation

VBML - Vestaboard Markup Language

Installation

JavaScript / TypeScript

yarn install @vestaboard/vbml

or

npm i @vestaboard/vbml

Python

pip install pyvbml

PHP

composer require vestaboard/vbml

Usage

JavaScript / TypeScript

import { vbml } from "@vestaboard/vbml";

// Generate an array of 6 rows of 22 character codes representing the template
const characters = vbml.parse({
  components: [
    {
      style: {
        justify: "center",
        align: "center",
      },
      template: "Hello World!",
    },
  ],
});

Python

from pyvbml import vbml

# Generate an array of 6 rows of 22 character codes representing the template
characters = vbml.parse({
    "components": [
        {
            "style": {
                "justify": "center",
                "align": "center",
            },
            "template": "Hello World!",
        }
    ]
})

PHP

use Vestaboard\Vbml\Vbml;

// Generate an array of 6 rows of 22 character codes representing the template
$characters = Vbml::parse([
    'components' => [
        [
            'style' => [
                'justify' => 'center',
                'align' => 'center',
            ],
            'template' => 'Hello World!',
        ],
    ],
]);

Docs

Full documentation is available at https://docs.vestaboard.com/docs/vbml

About

🌐 A package to parse VBML to Vestaboard character arrays

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors