0.2.0 • Published 11 years ago

capirona v0.2.0

Weekly downloads
81
License
-
Repository
-
Last release
11 years ago

Javascript Tasks

Example task:

var capirona = require("capirona");

capirona.make({
	"def hello/:name": {
		"run": function(target, next) {
			console.log("hello %s!", target.data.name);
			next();	
		}
	}
}).run("hello/craig", function() {
	console.log("done");
});

API

.make(task)

creates a new runnable script

.run(command, target, callback)

runs the given task. The target can be any value. For example:

capirona.make({
        "def log": {
                "run": function(target, next) {
                        console.log(target.value || target.data.text);
                        next();
                }
        }
}).
run("log", "hello world!").
run("log", {
	text: "hello world!"
});
0.2.0

11 years ago

0.1.4

11 years ago

0.1.3

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.19

12 years ago

0.0.18

12 years ago

0.0.17

12 years ago

0.0.16

12 years ago

0.0.15

12 years ago

0.0.14

12 years ago

0.0.13

12 years ago

0.0.12

12 years ago

0.0.11

12 years ago

0.0.10

12 years ago

0.0.9

12 years ago

0.0.8

12 years ago

0.0.7

12 years ago

0.0.6

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago

0.0.0

12 years ago