UNPKG

dwnpm

Version:

Decentralized Registry Package Manager (DRPM) helps developers publish, install, find and manage Decentralized Packages (DPKs) published to Decentralized Web Nodes (DWNs). DRPM does this by looking up a Decentralized Identifier (DID) to find its DID docum

21 lines 632 B
import { Logger } from '../../utils/logger.js'; export class RegistryCommand { async execute({ subcommand }) { if (subcommand === 'start') { await this.start(); } } async start() { try { Logger.info('Starting registry server ...'); const { Registry } = await import('../../registry/registry.js'); const server = new Registry(); server.start(); } catch (error) { Logger.error(`Failed to start registry server: ${error.message}`); throw error; } } } //# sourceMappingURL=registry.js.map