angelabilities-reactions
Adds support for scriptable reactions via angel dna
Last updated 6 years ago by outbounder .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install angelabilities-reactions 
SYNC missed versions from official npm registry.

angelabilities-reactions

Adds support for scriptable reactions via angel dna

angel dna

{
  "abilities": [
    "./plasma/angelabilities-reactions.js"
  ],
  "reactions": {
    "test emit": {
      "emit": {
        "type": "test"
      }
    },
    "test do": {
      "do": "test emit"
    }
  }
}

Given the above dna, angel used with command line

$ angel test emit

emits Chemical {type: "test"} within angel's Plasma

$ angel test do

does angel test emit command.

reactions syntax

"reactions": {
  "<command pattern> emit": <ChemicalBody>,
  "<command pattern> do": "<command>"
}

Current Tags

  • 0.0.1                                ...           latest (6 years ago)

1 Versions

  • 0.0.1                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |