Home / npm packages / socket.io
Every file of socket.io@4.8.4 as published on npm: 28 files, 513 KB. Search them by exact text or regex, in milliseconds.
It uses: new Function(), process.env, the fs module, http / https, fetch(), XMLHttpRequest, crypto.
| API | In socket.io | |
|---|---|---|
| eval() runs a string as JavaScript | No | Who does |
| new Function() builds a function from a string, like eval (with or without new) | Yes: 4 files e.g. client-dist/socket.io.esm.min.js | See the lines |
| child_process starts other programs | No | Who does |
| process.env reads environment variables | Yes: 1 file e.g. client-dist/socket.io.js | See the lines |
| the fs module reads and writes files | Yes: 2 files e.g. dist/index.js | See the lines |
| http / https makes or serves HTTP requests with Node's own modules | Yes: 6 files e.g. dist/index.js | See the lines |
| fetch() makes HTTP requests | Yes: 1 file e.g. client-dist/socket.io.esm.min.js | See the lines |
| XMLHttpRequest makes HTTP requests the old browser way | Yes: 4 files e.g. client-dist/socket.io.esm.min.js | See the lines |
| crypto hashes, encrypts or makes random numbers | Yes: 1 file e.g. dist/contrib/base64id.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 |
|---|---|
client-dist/socket.io.js | 154 KB |
client-dist/socket.io.msgpack.min.js | 51 KB |
client-dist/socket.io.min.js | 47 KB |
client-dist/socket.io.esm.min.js | 41 KB |
dist/socket.js | 30 KB |
dist/index.js | 29 KB |
dist/index.d.ts | 20 KB |
dist/socket.d.ts | 20 KB |
dist/namespace.js | 19 KB |
Readme.md | 17 KB |
dist/namespace.d.ts | 16 KB |
dist/broadcast-operator.js | 16 KB |
dist/broadcast-operator.d.ts | 11 KB |
dist/typed-events.d.ts | 10.0 KB |
dist/client.js | 8.3 KB |
dist/uws.js | 5.7 KB |
dist/parent-namespace.js | 3.6 KB |
dist/contrib/base64id.js | 2.9 KB |
dist/client.d.ts | 2.9 KB |
dist/typed-events.js | 2.6 KB |
package.json | 2.1 KB |
dist/socket-types.d.ts | 1.6 KB |
dist/parent-namespace.d.ts | 1.4 KB |
LICENSE | 1.1 KB |
dist/socket-types.js | 267 B |
dist/uws.d.ts | 171 B |
wrapper.mjs | 82 B |
dist/contrib/base64id.d.ts | 81 B |
Version 4.8.4 of socket.io publishes 28 files of source, 513 KB in all, not counting images, fonts and source maps.
No: socket.io doesn't call eval() anywhere in its published files.
No: socket.io doesn't use child_process anywhere in its published files.
No: socket.io 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.