Narnia's Poofy Meatcleaver
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    lazynodepublic

    lazynode

    lazily call an upnode server

    Creates a lazy object where each method calls up and then calls the method on the remote.

    Example Server

    var lazynode = require("..")
     
    lazynode({
        time: function (cb) {
            cb(new Date().toString())
        }
    }).listen(8642)

    Example Client

    var lazynode = require("..")
     
    var remote = lazynode.connect({
        port: 8642
        , methods: ["time"]
    })
     
    setInterval(function () {
        remote.time(function (t) {
            console.log("time = " + t)
        })
    }, 1000)

    Installation

    npm install lazynode

    Contributors

    • Raynos

    MIT Licenced

    Keywords

    none

    install

    npm i lazynode

    Downloadsweekly downloads

    5

    version

    0.1.0

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar