feat: NIPS command

This commit is contained in:
Alejandro Gómez
2025-12-14 15:14:14 +01:00
parent b8d05e40c7
commit 6f17415340
7 changed files with 176 additions and 11 deletions

View File

@@ -2,6 +2,11 @@
* List of valid NIPs from https://github.com/nostr-protocol/nips
* Includes both numeric (01-99) and hexadecimal (7D, A0, etc.) identifiers
*/
/**
* Deprecated NIPs that are no longer recommended for use
*/
export const DEPRECATED_NIPS = ["04", "08", "26", "96"] as const;
export const VALID_NIPS = [
// Numeric NIPs
"01",
@@ -201,3 +206,7 @@ export function getNipUrl(nipId: string): string {
export function getNipTitle(nipId: string): string {
return NIP_TITLES[nipId] || `NIP-${nipId}`;
}
export function isNipDeprecated(nipId: string): boolean {
return DEPRECATED_NIPS.includes(nipId as any);
}