UNPKG

hyperliquid

Version:
90 lines (89 loc) 2.43 kB
{ "name": "hyperliquid", "version": "1.7.6", "description": "SDK for Hyperliquid API", "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "browser": "./dist/browser.js", "require": "./dist/index.js", "import": "./dist/index.mjs" } }, "browser": { "./dist/index.js": "./dist/browser.js" }, "files": [ "dist", "src", "README.md", "LICENSE" ], "sideEffects": false, "scripts": { "prebuild": "npm run format", "build": "tsup", "test": "jest", "prepare": "node -e \"if (process.env.NODE_ENV !== 'production' && require('fs').existsSync('.git')) { require('child_process').execSync('npm run build', {stdio: 'inherit'}) }\"", "test:node": "node examples/node-test.js", "test:browser": "npx serve -s . -p 3000", "test:all": "npm run build && npm run test:node && echo '\nTo test in browser, run: npm run test:browser and visit http://localhost:3000/examples/browser-test.html'", "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"", "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx}\"", "format:all": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", "postinstall": "node -e \"if (process.env.NODE_ENV !== 'production' && require('fs').existsSync('.git')) { try { require('husky').install() } catch (e) { console.log('Husky setup skipped') } }\"", "dev:setup": "husky install" }, "keywords": [ "hyperliquid", "api", "sdk", "rest", "websocket", "trading", "crypto", "blockchain", "arbitrum", "dex" ], "author": "Nomeida", "license": "MIT", "dependencies": { "@msgpack/msgpack": "^3.0.0-beta2", "axios": "^1.7.2", "dotenv": "^16.5.0", "ethers": "^6.13.2", "ws": "^8.18.2" }, "devDependencies": { "@types/jest": "^29.0.0", "husky": "^9.1.7", "jest": "^29.0.0", "lint-staged": "^15.5.1", "prettier": "^3.5.3", "serve": "^14.0.0", "tsup": "^8.0.0", "typescript": "^5.0.0" }, "directories": { "test": "tests" }, "repository": { "type": "git", "url": "https://github.com/nomeida/hyperliquid-api" }, "engines": { "node": ">=16.0.0" }, "lint-staged": { "*.{ts,tsx,js,jsx}": [ "prettier --write" ], "*.{json,md}": [ "prettier --write" ] } }