nano-sched-ui

1.0.4 • Public • Published

Gitter NPM version Build status Test coverage Dependency Status License Downloads

nano-sched-ui

'nano-sched' plugin for parse, generate, validate UI-text format

ui.parse(log, data)

  • data Object
    • encoding String = 'utf8'
    • content String
  • result data Object
    • encoding String = 'ui-tree'
    • content Object

Converts UI-source into UI-tree.

ui.stringify(log, data)

  • data Object
    • encoding String = 'ui-tree'
    • content Object
  • result data Object
    • encoding String = 'utf8'
    • content String

Converts UI-tree into UI-source text

ui.to-scheme(log, data)

  • data Object
    • opts Object
    • encoding String = 'ui-tree'
    • content Object
    • id String -- scheme identifier

Compiles and saves UiScheme Object into opts.ui_schemes[id]

ui.validate(log, data)

  • data Object
    • opts Object
      • ui_schemes Object
    • encoding String = 'ui-tree'
    • content Object
    • scheme String -- scheme identifier

Validates ui-tree according to opts.ui_schemes[data.scheme] ui-scheme and translates all nodes args properties into objects with parsed arguments.

Readme

Keywords

none

Package Sidebar

Install

npm i nano-sched-ui

Weekly Downloads

1

Version

1.0.4

License

MIT

Last publish

Collaborators

  • holixus