UNPKG

@cfxdevkit/defillama

Version:

A TypeScript library for interacting with Defillama API

104 lines (103 loc) 3.02 kB
{ "name": "@cfxdevkit/defillama", "version": "0.1.3", "description": "A TypeScript library for interacting with Defillama API", "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "README.md", "LICENSE" ], "scripts": { "build": "tsc", "test": "jest", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint src examples", "lint:fix": "eslint src examples --fix", "format": "prettier --write \"src/**/*.ts\" \"examples/**/*.ts\"", "format:check": "prettier --check \"src/**/*.ts\" \"examples/**/*.ts\"", "prepare": "husky install", "prepublishOnly": "npm run build", "docs": "typedoc --out docs src/index.ts", "clean": "rimraf dist coverage docs", "example": "ts-node examples/usage.ts", "bump:patch": "npm run docs && git add . && git commit -m \"chore(release): docs update to %s\" && npm version patch -m \"chore(release): bump version to %s\"", "bump:minor": "npm run docs && git add . && git commit -m \"chore(release): docs update to %s\" && npm version minor -m \"chore(release): bump version to %s\"", "bump:major": "npm run docs && git add . && git commit -m \"chore(release): docs update to %s\" && npm version major -m \"chore(release): bump version to %s\"", "preversion": "npm run validate", "validate": "npm run lint && npm run format:check && npm run test", "version": "git add package.json", "postversion": "git push && git push --tags" }, "keywords": [ "defillama", "defi", "blockchain", "api", "typescript" ], "author": "cfxdevkit", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/cfxdevkit/defillama.git" }, "bugs": { "url": "https://github.com/cfxdevkit/defillama/issues" }, "homepage": "https://cfxdevkit.github.io/defillama", "dependencies": { "pino": "^8.19.0", "pino-pretty": "^10.3.1" }, "devDependencies": { "@eslint/js": "^9.20.0", "@testing-library/jest-dom": "^6.6.3", "@types/eslint": "^9.6.1", "@types/jest": "^29.5.0", "@types/node": "^20.0.0", "@types/node-fetch": "^2.6.12", "@types/pino": "^7.0.5", "globals": "^15.14.0", "husky": "^8.0.0", "jest": "^29.5.0", "lint-staged": "^15.2.0", "prettier": "^3.0.0", "rimraf": "^5.0.0", "ts-jest": "^29.1.0", "ts-node": "^10.9.0", "typedoc": "^0.27.0", "typedoc-plugin-markdown": "^4.4.1", "typescript": "^5.0.0", "typescript-eslint": "^8.23.0" }, "engines": { "node": ">=16.0.0" }, "lint-staged": { "src/**/*.{js,ts}": [ "eslint --fix", "prettier --write" ], "examples/**/*.{js,ts}": [ "eslint --fix", "prettier --write" ] }, "exports": { ".": { "types": "./dist/index.d.ts", "require": "./dist/index.js", "import": "./dist/index.mjs" } }, "typesVersions": { "*": { "*": [ "./dist/index.d.ts" ] } } }