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
10 lines (9 loc) • 364 B
text/typescript
import { DWeb5 } from '../../lib/dweb5.js';
import { Profile } from '../../lib/profile.js';
import { ICommand } from '../drpm.js';
export class ConnectCommand implements ICommand {
async execute({ options }: { options: any; }): Promise<void> {
const name = options.name ?? Profile.loadStaticSync().name;
await DWeb5.connect({name, verbose: true});
}
}