Home / npm packages / http-server
Every file of http-server@14.1.1 as published on npm: 20 files, 124 KB. Search them by exact text or regex, in milliseconds.
It uses: process.env, the fs module, http / https.
| API | In http-server | |
|---|---|---|
| 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: 3 files e.g. bin/http-server | See the lines |
| the fs module reads and writes files | Yes: 6 files e.g. bin/http-server | See the lines |
| http / https makes or serves HTTP requests with Node's own modules | Yes: 1 file e.g. lib/shims/https-server-shim.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 | No | Who does |
| 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/core/show-dir/icons.json | 62 KB |
lib/core/index.js | 14 KB |
bin/http-server | 9.4 KB |
README.md | 6.6 KB |
lib/core/show-dir/index.js | 6.0 KB |
lib/http-server.js | 5.5 KB |
lib/core/opts.js | 4.6 KB |
doc/http-server.1 | 4.2 KB |
package.json | 2.5 KB |
lib/core/status-handlers.js | 2.1 KB |
lib/shims/https-server-shim.js | 1.7 KB |
LICENSE | 1.1 KB |
lib/core/aliases.json | 943 B |
lib/core/show-dir/sort-files.js | 768 B |
lib/core/show-dir/size-to-string.js | 763 B |
lib/core/show-dir/styles.js | 564 B |
lib/core/show-dir/perms-to-string.js | 392 B |
lib/core/defaults.json | 383 B |
lib/core/show-dir/last-modified-to-string.js | 351 B |
lib/core/etag.js | 197 B |
Version 14.1.1 of http-server publishes 20 files of source, 124 KB in all, not counting images, fonts and source maps.
No: http-server doesn't call eval() anywhere in its published files.
No: http-server doesn't use child_process anywhere in its published files.
No: http-server 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.