capirona
Javascript Tasks
Last updated 8 years ago by architectd .
Repository · Original npm · Tarball · package.json
$ cnpm install capirona 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.0                                ...           latest (8 years ago)

26 Versions

  • 0.2.0                                ...           8 years ago
  • 0.1.4                                ...           8 years ago
  • 0.1.3                                ...           8 years ago
  • 0.1.2                                ...           8 years ago
  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
  • 0.0.19                                ...           8 years ago
  • 0.0.18                                ...           8 years ago
  • 0.0.17                                ...           8 years ago
  • 0.0.16                                ...           8 years ago
  • 0.0.15                                ...           8 years ago
  • 0.0.14                                ...           8 years ago
  • 0.0.13                                ...           8 years ago
  • 0.0.12                                ...           8 years ago
  • 0.0.11                                ...           8 years ago
  • 0.0.10                                ...           8 years ago
  • 0.0.9                                ...           8 years ago
  • 0.0.8                                ...           8 years ago
  • 0.0.7                                ...           8 years ago
  • 0.0.6                                ...           8 years ago
  • 0.0.5                                ...           8 years ago
  • 0.0.4                                ...           8 years ago
  • 0.0.3                                ...           8 years ago
  • 0.0.2                                ...           8 years ago
  • 0.0.1                                ...           8 years ago
  • 0.0.0                                ...           8 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (15)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |