UNPKG

@nostr-dev-kit/ndk

Version:

NDK - Nostr Development Kit

96 lines (95 loc) 2.93 kB
{ "name": "@nostr-dev-kit/ndk", "version": "2.14.30", "description": "NDK - Nostr Development Kit", "homepage": "https://ndk.fyi", "documentation": "https://nostr-dev-kit.github.io/ndk", "repository": { "type": "git", "url": "https://github.com/nostr-dev-kit/ndk" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "exports": { ".": { "import": { "types": "./dist/index.d.mts", "default": "./dist/index.mjs" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./workers/sig-verification": { "import": "./dist/workers/sig-verification.mjs", "require": "./dist/workers/sig-verification.js" }, "./test": { "import": { "types": "./dist/test/index.d.ts", "default": "./dist/test/index.js" }, "require": { "types": "./dist/test/index.d.ts", "default": "./dist/test/index.js" } } }, "files": [ "dist", "src", "README.md" ], "scripts": { "dev": "bun run build --watch", "build": "tsup src/index.ts --format cjs,esm --dts && tsup src/workers/sig-verification.ts --format cjs,esm --dts -d dist/workers && tsup test/index.ts --format cjs,esm --dts -d dist/test", "build:core:esm": "tsup src/index.ts --format esm --dts", "clean": "rm -rf dist docs", "test": "vitest run", "test:watch": "vitest watch", "test:coverage": "vitest run --coverage", "test:ui": "vitest --ui", "lint": "prettier --check . && eslint .", "compile": "tsc", "posttest": "bun run lint", "format": "prettier --write ." }, "keywords": [ "nostr" ], "author": "pablof7z", "license": "MIT", "engines": { "node": ">=16" }, "packageManager": "bun@1.0.0", "devDependencies": { "@types/debug": "^4.1.12", "@types/node": "^22.13.10", "@vitest/coverage-v8": "3.1.2", "esbuild": "^0.25.1", "esbuild-plugin-alias": "^0.2.1", "esm-loader-typescript": "^1.0.6", "nostr-tools": "2.7.1", "ts-node": "^10.9.2", "tsd": "^0.31.2", "tsup": "^8.4.0", "typedoc": "^0.28.0", "typedoc-plugin-rename-defaults": "^0.7.3", "vitest": "^3.1.2" }, "peerDependencies": { "nostr-tools": "^2" }, "dependencies": { "@noble/curves": "^1.6.0", "@noble/hashes": "^1.5.0", "@noble/secp256k1": "^2.1.0", "@scure/base": "^1.1.9", "debug": "^4.3.6", "light-bolt11-decoder": "^3.2.0", "tseep": "^1.3.1", "typescript-lru-cache": "^2" } }