UNPKG

node-switchbot

Version:

The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).

81 lines (80 loc) 2.29 kB
{ "name": "node-switchbot", "type": "module", "version": "3.5.0", "description": "The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).", "author": "OpenWonderLabs (https://github.com/OpenWonderLabs)", "license": "MIT", "homepage": "https://github.com/OpenWonderLabs/node-switchbot", "repository": { "type": "git", "url": "https://github.com/OpenWonderLabs/node-switchbot.git" }, "bugs": { "url": "https://github.com/OpenWonderLabs/node-switchbot/issues" }, "keywords": [ "switchbot", "bot", "meter", "temperature", "humidity", "curtain", "blind", "BLE", "Bluetooth Low Energy", "Bluetooth smart", "Bluetooth", "OpenAPI", "OpenWonderLabs", "Switchbot API" ], "main": "dist/index.js", "types": "dist/index.d.ts", "engines": { "node": "^20 || ^22" }, "scripts": { "check": "npm install && npm outdated", "lint": "eslint src/**/*.ts", "lint:fix": "eslint src/**/*.ts --fix", "watch": "npm run build && npm link && nodemon", "build": "npm run clean && tsc", "prepublishOnly": "npm run lint && npm run build && npm run docs && npm run lint-docs", "postpublish": "npm run clean && npm ci", "clean": "shx rm -rf ./dist", "test": "vitest run", "test:watch": "vitest watch", "test-coverage": "npm run test -- --coverage", "docs": "typedoc", "lint-docs": "typedoc --emit none --treatWarningsAsErrors" }, "readmeFilename": "README.md", "dependencies": { "@stoprocent/noble": "^1.19.1", "async-mutex": "^0.5.0", "undici": "7.4.0" }, "optionalDependencies": { "@stoprocent/bluetooth-hci-socket": "^1.5.2" }, "devDependencies": { "@antfu/eslint-config": "^4.4.0", "@types/aes-js": "^3.1.4", "@types/debug": "^4.1.12", "@types/fs-extra": "^11.0.4", "@types/mdast": "^4.0.4", "@types/node": "^22.13.9", "@types/semver": "^7.5.8", "@types/source-map-support": "^0.5.10", "@vitest/coverage-v8": "^3.0.7", "eslint": "^9.21.0", "eslint-plugin-format": "^1.0.1", "nodemon": "^3.1.9", "shx": "^0.3.4", "ts-node": "^10.9.2", "typedoc": "^0.27.9", "typescript": "^5.8.2", "vitest": "^3.0.7" } }