{"library":"websocket-event-codes","type":"library","category":null,"description":"A small, dependency-free Node.js module providing enumerated WebSocket status codes as constants. Version 1.1.0 is the latest stable release. This library is agnostic to any WebSocket library and simply exports an object mapping human-readable names to numeric status codes (e.g., NORMAL_CLOSURE: 1000). It is inspired by the similar http-status module. It has no dependencies and supports CommonJS only. Suitable for both Node.js and browser environments (via bundler).","language":"javascript","status":"active","version":"1.1.0","tags":["javascript","websocket","status","codes"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install websocket-event-codes","imports":["const WebSocketEventCodes = require('websocket-event-codes');","const { NORMAL_CLOSURE } = require('websocket-event-codes');","const codes = require('websocket-event-codes');\nconsole.log(codes.NORMAL_CLOSURE);"]},{"cmd":"yarn add websocket-event-codes","imports":[]},{"cmd":"pnpm add websocket-event-codes","imports":[]}],"homepage":"https://github.com/FenrirWillow/websocket-event-codes#readme","github":"https://github.com/FenrirWillow/websocket-event-codes","docs":null,"changelog":null,"pypi":null,"npm":"websocket-event-codes","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}