npm.io
0.6.2 • Published 4 years agoCLI

organic-angel

Licence
MIT
Version
0.6.2
Deps
4
Size
19 kB
Vulns
0
Weekly
0
Stars
9

organic-angel v0.7.0

Angel as concept derrives from bots. It can be understood also as command line assistant.

Docs

example in directory/myproject

0. install organic-angel

$ npm install organic-angel --save-dev
$ npm install angelabilities-package-scripts --save-dev
1. create ./scripts/time.js file
module.exports = async function(angel){
  angel.on("what is the :topic", async function(angel){
    if(angel.cmdData.topic == "time")
      console.log("The time is "+(new Date()).toString())
    else
      console.error("sorry, not recognized topic " + angel.cmdData.topic)
  })
}

Finally at the command line
$ npx angel what is the time

Abilities

Scripts