Skip to main content
This release is 1 version behind 0.0.5 — the latest version of @asgard/hermod. Jump to latest

Built and signed on GitHub Actions

lightweight, type-safe service discovery library for TypeScript applications.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
82%
Published
6 days ago (0.0.4)
class HermodService

Constructors

new
HermodService(serviceDiscovery: HermodServiceDiscovery)

Type Parameters

TName extends string = string
TInstance = unknown

Properties

The name of the service. This should be unique across all services.

Methods

discover(): void

The discover method adds the service to the service discovery.

The register method is called when the service is registered with the service discovery.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@asgard/hermod

Import symbol

import { HermodService } from "@asgard/hermod";

---- OR ----

Import directly with a jsr specifier

import { HermodService } from "jsr:@asgard/hermod";

Add Package

npx jsr add @asgard/hermod

Import symbol

import { HermodService } from "@asgard/hermod";

Add Package

yarn dlx jsr add @asgard/hermod

Import symbol

import { HermodService } from "@asgard/hermod";

Add Package

pnpm dlx jsr add @asgard/hermod

Import symbol

import { HermodService } from "@asgard/hermod";

Add Package

bunx jsr add @asgard/hermod

Import symbol

import { HermodService } from "@asgard/hermod";