@hyperfoundation/sdk
Version:
SDK for Hyperliquid API
96 lines (95 loc) • 2.64 kB
JSON
{
"name": "@hyperfoundation/sdk",
"version": "1.8.2",
"description": "SDK for Hyperliquid API",
"keywords": [
"hyperliquid",
"api",
"sdk",
"rest",
"websocket",
"trading",
"crypto",
"blockchain",
"arbitrum",
"dex"
],
"homepage": "https://github.com/cupcakez2d/hyperliquid#readme",
"bugs": {
"url": "https://github.com/cupcakez2d/hyperliquid/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cupcakez2d/hyperliquid.git"
},
"license": "MIT",
"author": "hyperliquid",
"type": "commonjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"browser": "./dist/browser.js",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
}
},
"main": "./dist/index.js",
"browser": {
"./dist/index.js": "./dist/browser.js"
},
"types": "./dist/index.d.ts",
"directories": {
"example": "examples",
"test": "tests"
},
"files": [
"dist",
"src",
"README.md",
"LICENSE"
],
"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"
},
"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.5.0",
"typescript": "^5.0.0"
},
"engines": {
"node": ">=16.0.0"
},
"module": "./dist/index.mjs",
"sideEffects": false,
"lint-staged": {
"*.{ts,tsx,js,jsx}": [
"prettier --write"
],
"*.{json,md}": [
"prettier --write"
]
}
}