xn-axon

    1.0.0 • Public • Published

    xn-axon

    axon backed xn

    npm status Dependency status

    example

    npm i xn-axon

    Server

    // specify an axon complaint port or address
    const server = require('xn-axon').server(3000)
     
    server.addModule('fs')
    server.addApi('pingi', '0.0.1', (callback) => {
        callback(null, 'pong')
    })

    client

    const client = require('xn-axon').client(3000)
     
    client.refresh((err, rpc) => {
        rpc.ping((err, result) => {
            console.log(result) // prints pong
        })
    })

    license

    MIT © yaniv kessler

    Install

    npm i xn-axon

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • kessler