UNPKG

nostr-hooks

Version:
101 lines (100 loc) 2.29 kB
{ "name": "nostr-hooks", "version": "4.3.3", "description": "React hooks for developing Nostr clients", "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "repository": { "type": "git", "url": "https://github.com/sepehr-safari/nostr-hooks.git" }, "files": [ "./dist/**/*" ], "funding": [ "https://getalby.com/p/sepehr" ], "exports": { ".": { "import": "./dist/index.js" }, "./nip29": { "import": "./dist/nip29/index.js" }, "./package.json": "./package.json" }, "scripts": { "build": "tsc", "test": "jest", "format": "prettier --write .", "prepare": "npm run build", "prepublishOnly": "npm run build" }, "jest": { "rootDir": ".", "preset": "ts-jest/presets/default-esm", "testEnvironment": "jsdom", "transform": { "^.+\\.(t|j)sx?$": [ "ts-jest", { "useESM": true } ] }, "extensionsToTreatAsEsm": [ ".ts", ".tsx" ], "moduleNameMapper": { "^nostr-hooks$": "<rootDir>/src/index.ts" }, "modulePathIgnorePatterns": [ "dist" ], "testRegex": "test.(js|ts|tsx)$", "setupFilesAfterEnv": [ "<rootDir>/jest.setup.ts" ] }, "keywords": [ "nostr", "decentralized", "social", "censorship-resistance", "client", "react", "hooks" ], "author": "Sepehr Safari", "license": "MIT", "devDependencies": { "@jest/globals": "^29.7.0", "@testing-library/react": "^16.0.1", "@types/node": "^22.5.5", "@types/react": "^18.3.5", "@types/react-dom": "^18.3.0", "@typescript-eslint/eslint-plugin": "^6.20.0", "eslint": "^8.56.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^29.7.0", "jest-environment-jsdom": "^29.7.0", "prettier": "^3.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", "ts-jest": "^29.1.2", "tslib": "^2.6.2", "typescript": "^5.6.2" }, "dependencies": { "@nostr-dev-kit/ndk": "^2.10.7", "@nostr-dev-kit/ndk-cache-dexie": "^2.5.8", "@uidotdev/usehooks": "^2.4.1", "immer": "^10.1.1", "nostr-tools": "^2.10.4", "superjson": "^2.2.1", "zustand": "^5.0.1" } }