UNPKG

@yeci226/hoyoapi

Version:

HoYoAPI is an unofficial API Wrapper library developed to facilitate communication with the official HoYoLab API.

114 lines (113 loc) 3.11 kB
{ "name": "@yeci226/hoyoapi", "version": "1.4.0", "description": "HoYoAPI is an unofficial API Wrapper library developed to facilitate communication with the official HoYoLab API.", "exports": { ".": { "import": "./dist/esm/index.mjs", "require": "./dist/cjs/index.js", "types": "./dist/types/index.d.ts" }, "./gi": { "import": "./dist/esm/client/gi/index.mjs", "require": "./dist/cjs/client/gi/index.js", "types": "./dist/types/client/gi/index.d.ts" }, "./hi": { "import": "./dist/esm/client/hi/index.mjs", "require": "./dist/cjs/client/hi/index.js", "types": "./dist/types/client/hi/index.d.ts" }, "./hsr": { "import": "./dist/esm/client/hsr/index.mjs", "require": "./dist/cjs/client/hsr/index.js", "types": "./dist/types/client/hsr/index.d.ts" }, "./hoyolab": { "import": "./dist/esm/client/hoyolab/index.mjs", "require": "./dist/cjs/client/hoyolab/index.js", "types": "./dist/types/client/hoyolab/index.d.ts" } }, "types": "./dist/types/index.d.ts", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", "scripts": { "prepare": "husky install && npm run build", "format": " npx prettier \"**/*.{ts,js,json,mjs,tsx}\" -w", "lint": "eslint \"**/*.{ts,js,json,mjs,tsx}\" --fix", "build": "ts-node scripts/build.ts", "test": "npm run type-check && ava", "test:coverage": "npm run type-check && c8 ava", "test:watch": "ava --watch", "type-check": "tsc --noEmit" }, "repository": { "type": "git", "url": "git+https://github.com/vermaysha/hoyoapi.git" }, "keywords": [ "hoyolab-api", "hoyoverse-api", "genshin-api", "honkai-api" ], "author": "Ashary Vermaysha", "license": "MIT", "bugs": { "url": "https://github.com/vermaysha/hoyoapi/issues" }, "homepage": "https://github.com/vermaysha/hoyoapi#readme", "lint-staged": { "*.{ts,tsx,js,json}": [ "prettier --write --ignore-unknown" ], "*.{ts,tsx}": "eslint --fix" }, "files": [ "dist/**/*" ], "engines": { "node": ">=8.17" }, "ava": { "files": [ "tests/**/*.test.ts" ], "timeout": "5m", "extensions": [ "ts" ], "require": [ "ts-node/register" ] }, "devDependencies": { "@commitlint/cli": "17.6.6", "@commitlint/config-conventional": "17.6.6", "@eslint/js": "^9.7.0", "@types/eslint": "latest", "@types/node": "20.3.3", "@types/prettier": "latest", "@types/sinon": "^10.0.15", "@typescript-eslint/eslint-plugin": "5.61.0", "@typescript-eslint/parser": "5.61.0", "ava": "^5.2.0", "c8": "^8.0.0", "concurrently": "^8.0.1", "dotenv": "^16.0.3", "esbuild": "^0.18.0", "eslint": "9.x", "eslint-config-prettier": "8.8.0", "globals": "^15.8.0", "husky": "8.0.3", "lint-staged": "13.2.3", "nock": "^13.3.0", "prettier": "2.8.8", "sinon": "^15.0.3", "tiny-glob": "^0.2.9", "ts-node": "^10.9.1", "tsx": "^3.12.6", "typescript": "5.1.6" } }