Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    virgiliopublic

    Virgilio

    wercker status NPM version

    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.defineAction$('number.add', function add(num1, num2) {
        return num1 + num2;
    });
     
    Virgilio.number.add(3, 6).then(function(result) {
        console.log(result);    //=> 9 
    });

    More tags

    Code Climate Test Coverage Dependency Status

    We dedicate this Library to the ServiceRegistrar, the EigenServices and the PuppetDresser.

    Keywords

    none

    install

    npm i virgilio

    Downloadsweekly downloads

    100

    version

    0.12.5

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar