nxt-virgilio
v0.0.1
Published
Virgilio, the next generation module bus
Downloads
3
Readme
Virgilio
Virgilio is a tiny framework helping you write modular applications. Start your project in a single file, then scale upwards as needed. No refactoring needed.
Features
Focus on writing code - not organising code
Build your application out of actions, small functions with a specific responsibility. Move your actions about the project as development progresses without having to wory about having to refactor. Use namespaces to oranise your actions, and rest save in the knowledge that they will always return a promise.
Extend it in any way you like
At less than a 100 lines of actual code, the main library is tiny and we aim to keep it that way. Additional functionality goes into extensions, which you are free to use or not use as you see fit. Mix Virgilio-extensions with your own favourite libraries any way you want.
Getting Started
Get Virgilio from npm.
npm install virgilio
Then start defining actions.
Virgilio = require('virgilio');
var virgilio = new Virgilio();
virgilio.namespace$('number').defineAction$(function add(num1, num2) {
return num1 + num2;
});
virgilio.number.add(3, 6).then(function(result) {
console.log(result); //=> 9
});
More tags
We dedicate this Library to the ServiceRegistrar, the EigenServices and the PuppetDresser.