# juno-node

> This is a library that provides you with helper methods for interfacing with the microservices framework, [juno](https://github.com/bytesonus/juno).

Latest version **0.1.2** (published 2020-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install juno-node
pnpm add juno-node
yarn add juno-node
bun add juno-node
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2020-05-17 |
| First published | 2020-04-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Unpacked size | 105.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | thebongy |
| Maintainers | rakshith-ravi |

## Links

- npm: https://www.npmjs.com/package/juno-node
- Repository: https://github.com/bytesonus/juno-node
- Homepage: https://github.com/bytesonus/juno-node#readme
- Issues: https://github.com/bytesonus/juno-node/issues
- npm.io page: https://npm.io/package/juno-node

## Recent versions

- 0.1.2 (latest) — 2020-05-17
- 0.1.2-beta (beta) — 2020-05-08
- 0.1.1 — 2020-05-07
- 0.1.1-beta — 2020-05-01
- 0.1.0 — 2020-05-01
- 0.0.3 — 2020-05-01
- 0.0.0 — 2020-04-26

## README

# Juno Node

This is a library that provides you with helper methods for interfacing with the microservices framework, [juno](https://github.com/bytesonus/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

```js
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()
```

---
_Source: https://npm.io/package/juno-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
