d-console

0.1.4 • Public • Published

d-command-line

Derby Console component.

Usage

Example usage

In your template

<view name="d-console" dash=">>> " on-new-command="newCommand()"></view>

In your app script

app.proto.newCommand = function (command, callback) {
  try {
    callback(null, eval(command));
  } catch (error) {
    callback(error.message);
  }
}

Readme

Keywords

Package Sidebar

Install

npm i d-console

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • icaliman