镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
bytesonusPublic archive

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

2 watching

Forks

Repository files navigation

Juno Node

This is a library that provides you with helper methods for interfacing with the microservices framework, juno.

How to use:

There is a lot of flexibility provided by the library, in terms of connection options and encoding protocol options. However, in order to use the library, none of that is required.

In case you are planning to implement a custom connection option, you will find an example in src/connection/unix-socket-connection.ts.

For all other basic needs, you can get away without worrying about any of that.

A piece of code is worth a thousand words

import JunoModule from "juno-node";

async function main() {
    let module = JunoModule.default("./path/to/juno.sock");
    await module.initialize("module-name", "1.0.0");
    console.log("Initialized!");

    await module.declareFunction("printHello", (args) => {
        console.log("Hello");
        return {};
    });

    await module.callFunction("module2.printHelloWorld");
}

main()

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages