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);
  }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.40latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00
0.0.20
0.0.10

Package Sidebar

Install

npm i d-console

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • icaliman