UNPKG

nostr-dm-magiclink-utils

Version:

A comprehensive Nostr utility library for magic link authentication via direct messages, supporting both ESM and CommonJS. Features NIP-01/04 compliant message encryption, multi-relay support, internationalization (i18n) with RTL support, and TypeScript-f

87 lines (86 loc) 2.51 kB
{ "name": "nostr-dm-magiclink-utils", "version": "0.2.0", "description": "A comprehensive Nostr utility library for magic link authentication via direct messages, supporting both ESM and CommonJS. Features NIP-01/04 compliant message encryption, multi-relay support, internationalization (i18n) with RTL support, and TypeScript-first development.", "author": "vveerrgg", "license": "MIT", "type": "module", "main": "./dist/cjs/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "repository": { "type": "git", "url": "git+https://github.com/HumanjavaEnterprises/nostr-dm-magiclink-utils.git" }, "bugs": { "url": "https://github.com/HumanjavaEnterprises/nostr-dm-magiclink-utils/issues" }, "homepage": "https://github.com/HumanjavaEnterprises/nostr-dm-magiclink-utils#readme", "scripts": { "build": "tsc && tsc -p tsconfig.cjs.json", "test": "vitest run", "test:watch": "vitest", "test:coverage": "vitest run --coverage", "lint": "eslint . --ext .ts", "format": "prettier --write \"src/**/*.ts\"", "prepare": "npm run build", "prepublishOnly": "npm test && npm run lint", "docs": "typedoc", "docs:serve": "npm run docs && serve docs" }, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/cjs/index.js", "default": "./dist/index.js" } }, "files": [ "dist/**/*" ], "dependencies": { "@noble/hashes": "^1.7.1", "@scure/base": "^1.1.5", "@types/jsonwebtoken": "^9.0.7", "dotenv": "^16.4.7", "jsonwebtoken": "^9.0.2", "nostr-crypto-utils": "^0.4.14", "nostr-nsec-seedphrase": "^0.6.5", "nostr-websocket-utils": "^0.3.13", "pino": "^8.21.0" }, "devDependencies": { "@types/node": "^20.17.16", "@typescript-eslint/eslint-plugin": "^6.21.0", "@typescript-eslint/parser": "^6.21.0", "@vitest/coverage-v8": "^1.6.0", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.0", "eslint-plugin-jsdoc": "^46.10.1", "pino-pretty": "^13.0.0", "prettier": "^3.4.2", "serve": "^14.2.4", "typedoc": "^0.27.6", "typescript": "^5.7.3", "vitest": "^1.6.0" }, "keywords": [ "nostr", "magic-link", "authentication", "direct-messages", "typescript", "esm", "commonjs", "dual-module", "nostr-protocol", "nip-01", "nip-04", "i18n", "rtl-support" ], "engines": { "node": ">=18.0.0" } }