Home / npm packages / ws
Every file of ws@8.22.0 as published on npm: 19 files, 151 KB. Search them by exact text or regex, in milliseconds.
It uses: process.env, the fs module, http / https, crypto.
| API | In ws | |
|---|---|---|
| eval() runs a string as JavaScript | No | Who does |
| new Function() builds a function from a string, like eval (with or without new) | No | Who does |
| child_process starts other programs | No | Who does |
| process.env reads environment variables | Yes: 2 files e.g. lib/buffer-util.js | See the lines |
| the fs module reads and writes files | Yes: 1 file e.g. README.md | See the lines |
| http / https makes or serves HTTP requests with Node's own modules | Yes: 3 files e.g. lib/websocket-server.js | See the lines |
| fetch() makes HTTP requests | No | Who does |
| XMLHttpRequest makes HTTP requests the old browser way | No | Who does |
| crypto hashes, encrypts or makes random numbers | Yes: 3 files e.g. lib/sender.js | See the lines |
| WebAssembly loads WebAssembly code | No | Who does |
| document.cookie reads or writes browser cookies | No | Who does |
| install scripts runs a script when it's installed | No | Who does |
Exact matches in the published files, so a mention in a comment counts too: open the lines to check.
| File | Size |
|---|---|
lib/websocket.js | 38 KB |
lib/receiver.js | 17 KB |
lib/websocket-server.js | 17 KB |
lib/sender.js | 17 KB |
README.md | 15 KB |
lib/permessage-deflate.js | 15 KB |
lib/event-target.js | 7.3 KB |
lib/extension.js | 6.2 KB |
lib/stream.js | 4.2 KB |
lib/validation.js | 3.9 KB |
lib/buffer-util.js | 3.1 KB |
package.json | 1.8 KB |
lib/subprotocol.js | 1.5 KB |
LICENSE | 1.2 KB |
lib/limiter.js | 1.0 KB |
index.js | 796 B |
wrapper.mjs | 554 B |
lib/constants.js | 503 B |
browser.js | 176 B |
Version 8.22.0 of ws publishes 19 files of source, 151 KB in all, not counting images, fonts and source maps.
No: ws doesn't call eval() anywhere in its published files.
No: ws doesn't use child_process anywhere in its published files.
No: ws has no preinstall, install or postinstall script in its package.json.
The same engine answers over your documents and repositories: exact text and regex, every match counted, from your code or your AI agent.