Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
346 commits
Select commit Hold shift + click to select a range
10b5ded
remove 0.0.0.0 overwriting
skyward-luke Jul 25, 2020
3f30d3c
Adding output of server settings on startup
ColtonHerrod Sep 13, 2020
60aa3ff
removing extra logging statement
ColtonHerrod Sep 16, 2020
df53b9d
Mention process.env.PORT in options
ts-web Oct 12, 2020
92d5521
Merge pull request #658 from ts-web/master
thornjad Oct 13, 2020
2048ce8
Adding an empty commit to re-trigger Travis build.
ColtonHerrod Oct 19, 2020
950b6a1
Add keyword http-server
jbergens Nov 2, 2020
2e9a002
Merge pull request #1 from jbergens/jbergens-add-keyword
jbergens Nov 13, 2020
bd9c9a1
Update package.json
jbergens Dec 12, 2020
d1b7739
Merge pull request #662 from jbergens/master
thornjad Mar 9, 2021
278b5b6
remove problematic fixtures
thornjad Mar 9, 2021
56062a4
update license year
thornjad Mar 9, 2021
4217837
ignore nyc output
thornjad Mar 9, 2021
4812219
port old tests to tap
thornjad Mar 9, 2021
0a132b4
typo
thornjad Mar 9, 2021
c2b176d
move tests into promise arrays
thornjad Mar 9, 2021
eeb6fce
Bump y18n from 3.2.1 to 3.2.2
dependabot[bot] Mar 30, 2021
3fbb8fe
Fix ecstatic tests
zbynek Jul 3, 2021
431def8
Merge pull request #624 from http-party/rc-v0.13.0
thornjad Jul 6, 2021
f4559fa
Merge pull request #679 from http-party/dependabot/npm_and_yarn/y18n-…
thornjad Jul 6, 2021
aadf7d4
Bump http-proxy from 1.18.0 to 1.18.1
dependabot[bot] Jul 6, 2021
5334dba
Merge pull request #651 from http-party/dependabot/npm_and_yarn/http-…
thornjad Jul 6, 2021
77dd348
No trim needed in test
zbynek Jul 6, 2021
434507d
Expose mimetypes as CLI option
zbynek Jul 7, 2021
84758e0
document -p 0 behavior
thornjad Jul 12, 2021
8f845ca
Merge branch 'master' into ecstatic-with-tests
thornjad Jul 12, 2021
1112b90
Use npm@7 on Travis
zbynek Jul 12, 2021
ab841b4
Use local npm version in Travis
zbynek Jul 12, 2021
c14f3d9
Override install
zbynek Jul 12, 2021
31183ec
No more Windows/Node 8 on Travis
zbynek Jul 12, 2021
d6fa8dd
Merge pull request #693 from zbynek/ecstatic-with-tests
thornjad Jul 16, 2021
bbd1c8e
Bump http-proxy from 1.18.0 to 1.18.1
dependabot[bot] Jul 16, 2021
b44db91
Create codeql-analysis.yml
thornjad Jul 16, 2021
beb48a5
Create SECURITY.md
thornjad Jul 16, 2021
f03c14a
Merge pull request #700 from http-party/dependabot/npm_and_yarn/http-…
thornjad Jul 16, 2021
5298ea7
Merge pull request #701 from http-party/codeql-workflow
thornjad Jul 16, 2021
43e39ec
Create node.js.yml
thornjad Jul 16, 2021
90caa65
Delete .travis.yml
thornjad Jul 16, 2021
b92ca70
Update node.js.yml
thornjad Jul 16, 2021
3b8bcc9
Update node.js.yml
thornjad Jul 16, 2021
133a64c
Update node.js.yml
thornjad Jul 16, 2021
dad375d
Update node.js.yml
thornjad Jul 16, 2021
2c2ad02
Update node.js.yml
thornjad Jul 16, 2021
f09c821
Update node.js.yml
thornjad Jul 16, 2021
e9ad269
Replace travis badge
thornjad Jul 16, 2021
33fe714
Merge pull request #702 from http-party/replace-travis
thornjad Jul 16, 2021
0f3e241
Merge pull request #642 from skyward-luke/master
thornjad Jul 16, 2021
e9716d1
Account for CRLF in a test
zbynek Jul 16, 2021
fab3248
Merge pull request #704 from zbynek/patch-1
thornjad Jul 16, 2021
b4991b8
Remove line break from LICENSE
zbynek Jul 18, 2021
7830ac2
Remove charset from header of binary files
zbynek Jul 18, 2021
cd84a85
revert
thornjad Aug 5, 2021
9c51cb2
Merge branch 'master' into no_server_headers
thornjad Aug 5, 2021
46c0ce7
Merge pull request #705 from zbynek/patch-1
thornjad Aug 5, 2021
cd1afb7
Merge pull request #706 from zbynek/no-charset-binary
thornjad Aug 5, 2021
a7fdf0f
remove server header
thornjad Aug 5, 2021
6b87653
drop codeql
thornjad Aug 6, 2021
a4ec10b
Merge pull request #713 from http-party/codeql-bye-bye
thornjad Aug 6, 2021
c57654d
Merge branch 'master' into no_server_headers
thornjad Aug 6, 2021
1f994c0
Merge pull request #591 from http-party/no_server_headers
thornjad Aug 7, 2021
aec3911
update security for release
thornjad Aug 7, 2021
f2c0dfb
update milestone
thornjad Aug 7, 2021
a845834
Update dependency tree
thornjad Aug 7, 2021
77243e7
0.13.0
thornjad Aug 7, 2021
a93a340
13.0.0
thornjad Aug 7, 2021
6d0835f
Used table format for README summary of commands.
wayiam Aug 8, 2021
1cfd2f9
Merge pull request #1 from wayiam/commands-table-format
wayiam Aug 8, 2021
2dc4640
remove hs alias
thornjad Aug 9, 2021
b1e9f46
Created Column for default values
wayiam Aug 9, 2021
635a9ae
Merge pull request #2 from wayiam/column-for-default-values-1
wayiam Aug 9, 2021
c74855e
Fixed the column bug
wayiam Aug 9, 2021
def466b
Merge pull request #3 from wayiam/fixed-the-column-bug
wayiam Aug 9, 2021
5536af0
Update README.md
wayiam Aug 10, 2021
f15af39
Update README.md
wayiam Aug 10, 2021
d49cea5
Update README.md
wayiam Aug 10, 2021
7bd98e8
Update README.md
wayiam Aug 10, 2021
eec8c36
Merge pull request #715 from wayiam/master
thornjad Aug 12, 2021
8f42407
Merge pull request #716 from http-party/remove-hs-alias
thornjad Aug 16, 2021
7cee170
Create stale.yml
thornjad Aug 16, 2021
e32f5f1
Update README.md
thornjad Aug 17, 2021
3f1c6b0
Merge pull request #654 from ColtonHerrod/feature/log_settings
thornjad Aug 20, 2021
164e7e7
13.0.1
thornjad Aug 20, 2021
6a677a6
Update README.md
thornjad Aug 20, 2021
c5a4994
Update ISSUE_TEMPLATE
thornjad Aug 20, 2021
caf3cac
Update SECURITY.md
thornjad Aug 20, 2021
ebca5fa
Update SECURITY.md
thornjad Aug 20, 2021
9577eae
Update SECURITY.md
thornjad Aug 22, 2021
7113dab
open to 127.0.0.1 when host is 0.0.0.0
thornjad Sep 13, 2021
e68796e
Merge pull request #728 from http-party/fix-o-on-windows
thornjad Sep 13, 2021
29208b7
13.0.2
thornjad Sep 13, 2021
f52c96a
add ability to pass proxyOptions
yannickglt Jun 9, 2021
fe2f7b5
Use relative paths in directory listing #661
boarwell Sep 30, 2021
58698fa
Adds version number to server startup output
Innoveramera Oct 1, 2021
693ad87
Merge pull request #732 from boarwell/relative-paths
thornjad Oct 1, 2021
02d6500
Merge pull request #734 from Innoveramera/master
thornjad Oct 1, 2021
a5c2768
Implement displaying last modified date in index
owenl131 Oct 2, 2021
0b754bf
Update PULL_REQUEST_TEMPLATE
thornjad Oct 5, 2021
08ffbf5
Update ISSUE_TEMPLATE
thornjad Oct 5, 2021
b9bca4e
Merge pull request #737 from owenl131/autoindex-display-last-modified
thornjad Oct 5, 2021
acf6095
upgrade basic-auth
thornjad Oct 5, 2021
74ddfda
minor upgrades
thornjad Oct 5, 2021
7e368d6
Fixes #451
Ratcoder Oct 6, 2021
910a469
update url-join
thornjad Oct 6, 2021
b927279
update lock
thornjad Oct 6, 2021
1ac504c
Update README.md
thornjad Oct 6, 2021
fe000e2
Update bin/http-server
thornjad Oct 6, 2021
8c48c0a
get a good port every time
thornjad Oct 6, 2021
f7d13c2
Merge pull request #741 from http-party/eaccess-test-failures
thornjad Oct 6, 2021
e8db8dc
Added test for issue #451
Ratcoder Oct 6, 2021
7025474
replace mkdirp with native js
thornjad Oct 6, 2021
940399b
Merge pull request #740 from http-party/audit
thornjad Oct 6, 2021
c319abd
Merge branch 'master' into remove-mkdirp
thornjad Oct 6, 2021
860992b
Drop Node.js 10 support
boarwell Oct 5, 2021
e692640
replace common-style with eslint-config-populist
chris--jones Oct 9, 2021
46af9d0
apply minimal eslint rule overrides
chris--jones Oct 9, 2021
8b7535f
add passphrase option
chris--jones Oct 9, 2021
d21714f
add passphrase info to http-server.1 in doc
chris--jones Oct 9, 2021
8647245
Merge pull request #743 from http-party/remove-mkdirp
thornjad Oct 11, 2021
8ca74b5
Merge pull request #739 from boarwell/drop-node-10
thornjad Oct 11, 2021
35ff346
Merge pull request #688 from yannickglt/http-proxy-options
thornjad Oct 11, 2021
0ba1cb3
Made proxy url checker more general
Ratcoder Oct 11, 2021
5d55b6a
Removed accidental require()
Ratcoder Oct 11, 2021
bdf879a
make ssl an alias of tls
thornjad Oct 11, 2021
6f49089
use portfinder in cli test
thornjad Oct 11, 2021
6307b00
stylistic change
Ratcoder Oct 11, 2021
dbd607c
stylistic change
Ratcoder Oct 11, 2021
38d08ad
Merge pull request #747 from http-party/tls-option
thornjad Oct 11, 2021
b80f3d3
Added missing comma
Ratcoder Oct 11, 2021
622302e
update issue templates
thornjad Oct 12, 2021
b9304ee
Merge branch 'master' into master
thornjad Oct 12, 2021
046fefa
Update test/cli.test.js
Ratcoder Oct 12, 2021
964725e
Cors fixes
thornjad Oct 12, 2021
c9b9c13
fix deprecated buffer creation
thornjad Oct 12, 2021
86e8978
clean up stream if it closes
thornjad Oct 12, 2021
93fbb75
Merge pull request #742 from Ratcoder/master
thornjad Oct 13, 2021
2aa7e0e
fix crash on redirect with formfeed in URL
thornjad Oct 13, 2021
1d5ec57
fix readme table
thornjad Oct 13, 2021
0d3783e
add release-drafter
thornjad Oct 13, 2021
01c612e
Merge pull request #750 from http-party/release-drafter
thornjad Oct 13, 2021
8564551
Update release-drafter.yml
thornjad Oct 13, 2021
a7d08e1
Update release-drafter.yml
thornjad Oct 13, 2021
df8c736
Merge pull request #749 from http-party/fix-dos-vuln
thornjad Oct 13, 2021
96aa6e9
Merge pull request #748 from http-party/cors-fix
thornjad Oct 13, 2021
e0dec9d
Merge branch 'master' into eslint-config
chris--jones Oct 15, 2021
d482a2f
Update README.md
chris--jones Oct 15, 2021
cb0b601
Merge branch 'master' into allow-pem-passphrase
chris--jones Oct 15, 2021
32f43c9
Merge branch 'allow-pem-passphrase' of github.com:chris--jones/http-s…
chris--jones Oct 15, 2021
df39f60
fix broken unit test
chris--jones Oct 15, 2021
7c510cf
fix errors and formatting in shim
chris--jones Oct 15, 2021
6a360ab
Merge pull request #744 from chris--jones/eslint-config
thornjad Oct 15, 2021
51204e1
Merge pull request #746 from chris--jones/allow-pem-passphrase
thornjad Oct 15, 2021
53c062d
add contributing
thornjad Oct 15, 2021
df5f0aa
update contribution guide
thornjad Oct 15, 2021
49e6608
update contribution guide
thornjad Oct 15, 2021
c28e2c9
Add FUNDING.yml
thornjad Oct 15, 2021
111bfd7
Merge pull request #752 from http-party/contribution-guide
thornjad Oct 15, 2021
7c7c598
Create CODE_OF_CONDUCT.md
thornjad Oct 15, 2021
2b99fa5
Update CONTRIBUTING.md
thornjad Oct 18, 2021
ec61336
dont crash on null byte in path
thornjad Oct 18, 2021
1e89681
Merge pull request #753 from http-party/null-byte-crash
thornjad Oct 18, 2021
b32b8a4
Add encoding sniffing
boarwell Oct 2, 2021
5dfc780
Add tests for charset
boarwell Oct 2, 2021
b0cb863
Fix encoding sniffing strategy
boarwell Oct 2, 2021
cf17c2f
Merge pull request #736 from boarwell/encoding-charset
thornjad Oct 19, 2021
1f17b83
update package-lock
thornjad Oct 19, 2021
967e915
14.0.0
thornjad Oct 19, 2021
7212f76
test on node 17
thornjad Oct 19, 2021
72b6b07
update security policy
thornjad Oct 19, 2021
685f3c8
Switch from colors to chalk
zbynek Jan 10, 2022
56bdf6e
Merge pull request #785 from zbynek/use-chalk
thornjad Jan 10, 2022
e16ed1d
14.1.0
thornjad Jan 10, 2022
251d4a1
Update support commitments for Jan 2022
thornjad Jan 10, 2022
33a6639
Update SECURITY.md
thornjad Jan 10, 2022
f68e454
Make sure headers are not set twice on error
zbynek Jan 23, 2022
dc2fcf0
Bump follow-redirects from 1.14.4 to 1.14.8
dependabot[bot] Feb 12, 2022
17cc8d6
Patch CVE-2021-44906
dpassen Mar 22, 2022
284a0b0
Merge pull request #803 from dpassen/patch-CVE-2021-44906
thornjad Apr 8, 2022
318c55f
Merge pull request #794 from http-party/dependabot/npm_and_yarn/follo…
thornjad Apr 8, 2022
e5301d3
update license year
thornjad May 31, 2022
af0ac3e
14.1.1
thornjad May 31, 2022
9fd0d47
Add Node 18 CI
thornjad May 31, 2022
8f7fcb0
Merge pull request #791 from zbynek/headers
thornjad May 31, 2022
75520fa
fix broken shields.io badge
jwetzell Oct 18, 2023
66e2cf8
Merge pull request #869 from jwetzell/fix-readme
thornjad Sep 20, 2024
0f62a10
chore: update tap
KernelDeimos Sep 20, 2024
1ebafd1
test: tap ifError -> error
KernelDeimos Sep 20, 2024
b6f1b1e
test: avoid conflicting http servers in 304 test
KernelDeimos Sep 20, 2024
60cf5ec
test: update remaining tap asserts
KernelDeimos Sep 20, 2024
8ca8c7a
chore: npm audit
KernelDeimos Sep 20, 2024
e8a96d0
dev: add Dockerfile
KernelDeimos Sep 30, 2024
b7c46ac
test: add localhost addresses test
KernelDeimos Sep 30, 2024
a07121a
set default listen on ipv4 and ipv6 interfaces
Aug 26, 2022
11b57b1
Add -H/--header option
dxdxdt Aug 14, 2024
51ee532
Add tests for --header option, accept empty header
dxdxdt Aug 15, 2024
7f7d93a
Doc -H/--header option
dxdxdt Aug 15, 2024
165d05e
Fix issue #895: Handle requests to ::1 in localhost test - 6 of 6 tes…
Oct 2, 2024
bf4816d
Docs: Update README
operagxoksana Oct 14, 2024
e4ea27c
Use terse reporter and allow incomplete coverage
ixth Nov 4, 2024
1f14fa7
Remove node<=14.x and add >=20.x to jobs matrix
ixth Nov 4, 2024
e363ec3
Bump actions/checkout -> v4.2.2, actions/setup-node -> 4.1.0
ixth Nov 4, 2024
3b86caa
Bump .engines.node -> >=16.20.2
ixth Nov 4, 2024
fe91590
feat: add `--base-dir` to cli options to specify base path (#837)
MaximSagan Nov 5, 2024
791aff1
chore: update readme license (#913)
operagxoksana Mar 1, 2025
9d7dd6b
Proxy WebSocket connections and handle errors (#872)
Hermholtz Aug 6, 2025
360b798
Fix CORS option documentation to match actual behavior
jelveh Sep 21, 2025
fede783
Merge pull request #925 from http-party/fix-cors-documentation
jelveh Sep 21, 2025
41681fc
Fix IPv4 interface detection for Node.js 18+
jelveh Sep 21, 2025
70301b2
Test IPv4 interface detection for Node.js compatibility
jelveh Sep 21, 2025
38eec0a
Merge pull request #926 from http-party/issue-810-ipv4-detection
jelveh Sep 22, 2025
1d8972f
feat: add darkmode support (#827)
vapier Sep 22, 2025
f265197
Include changes form PR #923 with additional changes (#927)
KernelDeimos Sep 26, 2025
f9bf1d7
bot: bump cookie and express (#902)
dependabot[bot] Sep 30, 2025
661d341
bot: bump prismjs from 1.29.0 to 1.30.0 (#929)
dependabot[bot] Sep 30, 2025
06d8af9
test: use ephemeral ports to avoid race conditions
KernelDeimos Sep 30, 2025
60ea0bb
chore: add .tap to .gitignore
KernelDeimos Sep 30, 2025
a8cd44c
feat: link uncompressed in "index of" (#930)
KernelDeimos Oct 8, 2025
9c20674
Do not allow CRLF in headers (#932)
KernelDeimos Oct 17, 2025
78972bf
Proxy websocket requests
Oct 15, 2024
d2f27cf
Proxy websockets only with --websocket
Oct 15, 2024
f6306d5
Update PR 901 to add --websocket flag
KernelDeimos Oct 17, 2025
7be905c
feat: add flag `--content-type`
KernelDeimos Nov 8, 2025
cf063f0
feat: add flag `--proxy-all`
KernelDeimos Nov 8, 2025
b525b4a
Feat/--dir-overrides-404 flag (#894)
JorensM Nov 14, 2025
fcf8197
apply default background css for icon (#842)
DRSDavidSoft Nov 14, 2025
2907fe6
Bump glob (#936)
dependabot[bot] Nov 28, 2025
46520f0
fix: update stat behavior (#889)
KernelDeimos Nov 28, 2025
09c4e4d
add --coop option to enable cross-origin isolated (#806)
vapier Nov 29, 2025
d2c7a5f
fix: fail fast on `--password` without `--user` (#937)
KernelDeimos Nov 29, 2025
a4c13ae
"416 Range Not Satisfiable" should contain "Content-Range" as of RFC …
dstd Oct 31, 2022
a559106
fix: migrate range.test.js for tap v21
KernelDeimos Dec 5, 2025
26a12e0
test: add tests for timeout
KernelDeimos Dec 6, 2025
171e2ba
Fix timeout flag behavior (#826)
elliotwutingfeng Dec 6, 2025
8fb218b
fix: potentially hanging test
KernelDeimos Dec 6, 2025
c98ef8b
fix: attempt to fix Windows tests
KernelDeimos Dec 6, 2025
89c2cef
Close server port on exit (#823)
ngocdaothanh Dec 6, 2025
8dbde7d
added proxy config for complex proxy rules (#907)
i3ene Dec 16, 2025
5c25529
Add support for Private Network Access via Access-Control-Allow-Priva…
artemdanylenko Dec 19, 2025
df9d613
fix: update tests for --private-network-access
KernelDeimos Dec 19, 2025
0643dab
chore(ci): remove node v16, v18; add v24
KernelDeimos Dec 19, 2025
e3e4241
Add `-T` / `--title` parameter (#939)
KernelDeimos Dec 19, 2025
393e010
Add graceful shutdown and error handling (#779)
Octalbyte Dec 19, 2025
8e685ef
Update LICENSE
operagxoksana Jan 6, 2026
84794d8
cleanup show-dir a bit
velzie Jan 7, 2026
a25f53a
Merge pull request #941 from velzie/master
jelveh Jan 8, 2026
9df08a0
Merge pull request #940 from operagxoksana/patch-5
jelveh Jan 12, 2026
a982824
add --hide-permissions flag to command line (#943)
velzie Jan 21, 2026
741ae2b
clean up parseOpts function and add jsdoc for parsed options object (…
velzie Jan 22, 2026
f80aca0
fix: colors not defined and logger warning not a function when using …
HarshVz Mar 12, 2026
a0a71aa
Allow setting changeOrigin to false (#954)
JensOlesen47 Mar 13, 2026
0d3b7bb
implement --allowed-hosts flag (#953)
velzie Mar 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
yarn-error.log
npm-debug.log
Dockerfile
.dockerignore
.git
.gitignore
testdir/privatefile
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "eslint-config-populist",
"rules": {
"strict": "warn",
"indent": ["warn", 2],
"valid-jsdoc": "warn",
"no-undefined": "warn",
"comma-dangle": "warn",
"callback-return": ["warn", ["next"]]
}
}
53 changes: 53 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Contributing to http-server

> Please read these guidelines before submitting an issue, filing a feature request, or contributing code.

## :bug: I Found a Bug

Sorry! It happens to the best of us. If you've found a bug in http-server, **please [search](https://github.com/http-party/http-server/issues/) to see if it's already been reported**. Otherwise, create a [new issue](https://github.com/http-party/http-server/issues/new). If you can fix the bug yourself, feel free to create a [pull request](#propose-a-change) thereafter.

Please include _as much detail as possible_ to help us reproduce and diagnose the bug. Most importantly:

- Make use of the issue template!
- Let us know _how_ you're running http-server (options, flags, environment, etc.)
- Include your test code or file(s). If large, please provide a link to a repository or [gist](https://gist.github.com).
- Please show code in JavaScript only (any version)

If we need more information from you, we'll let you know. If you don't within a reasonable time frame (TBD), your issue will be automatically tagged as stale and eventually closed for inactivity.

## :exclamation: Propose a Change

Before you get your hands dirty, please [search](https://github.com/http-party/http-server/issues/) for a related issue, or [create a new one](https://github.com/http-party/http-server/issues/new). If you wish to contribute a new feature, this is doubly important! Let's discuss your proposed changes first; we don't want you to waste time implementing a change that is at odds with the project's direction. That said, we'll happily consider any contribution, no matter how great or small.

### :shoe: Contributing Code: Step-by-Step

Follow these steps to get going.

1. [Install the latest version of Node.js](https://nodejs.org/en/download).
- If you're new to installing Node, a tool like [nvm](https://github.com/creationix/nvm#install-script) can help you manage multiple version installations.
1. Follow [Github's documentation](https://help.github.com/articles/fork-a-repo/) on setting up Git, forking and cloning.
1. Create a new branch in your fork, giving it a descriptive name
1. Execute `npm install` to install the prod and dev dependencies
- Do not use `yarn install` for development, as it may not get the same package versions as other developers.
1. Make your changes and add them via `git add`.
- **Tests are required** for any non-trivial code change. If you're having trouble making tests, go ahead and open the pull request and we can help
- Keep your PR focused. Don't fix multiple things at once, and don't upgrade dependencies unless necessary.
1. Before committing, run `npm test`
- Tests will also run on your PR, but running them locally will let you catch problems ahead-of-time.
1. Commit your changes.
- See [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/).
- **Please do not use "Conventional Commits" style**
1. Push your changes to your fork.
1. Now on [http-party/http-server](https://github.com/http-party/http-server), you should see a notification about your recent changes in your fork's branch, with a green button to create a pull request. Click the button.
1. Describe your changes in detail here, following the template. Once you're satisfied, submit the form.
1. Be patient while your PR is reviewed. This can take a while. We may request changes, but don't be afraid to question them.
1. Your PR might become conflicted with the code in `master`. If this is the case, you will need to [update your PR](#up-to-date) and resolve your conflicts.
1. You don't need to make a new PR to any needed changes. Instead, commit on top of your changes, and push these to your fork's branch. The PR will be updated, and CI will re-run.
- **Please do not rebase and force-push**, it ruins the git history

## :angel: I Just Want To Help

_Excellent._ Here's how:

- **Handy with JavaScript?** Please check out the issues labeled [`help-wanted`](https://github.com/http-party/http-server/issues?q=is%3Aopen+is%3Aissue+label%3A%22help-wanted%22) or [`good first issue`](https://github.com/http-party/http-server/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Agood+first+issue).
- **Wait--you write unit tests for _fun_?** A PR which increases coverage is unlikely to ever be turned down.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: thornjad
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE

This file was deleted.

34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug report
about: Create a report to help us improve
---

<!-- Describe the issue briefly here. -->

#### Environment Versions

1. OS Type
1. Node version: `$ node --version`
1. http-server version: `$ http-server --version`

#### Steps to reproduce

<!-- Include the actual command -->

1. ...
2. ...
3. ...

#### Expected result

...

#### Actual result

<!-- Include full output and/or stack trace -->

...

#### Other information

<!-- Include related issues, suggestions for a fix or further debug information, etc. -->
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
---

#### What's the problem this feature will solve?

<!-- What are you trying to do, that you are unable to achieve with http-server as it currently stands? -->

#### Describe the solution you'd like

<!-- A clear and concise description of what you want to happen. -->

<!-- Provide examples of real-world use cases that this would enable and how it solves the problem described above. -->

#### Alternative Solutions

<!-- Have you tried to workaround the problem using http-server or other tools? Or a different approach to solving this issue? Please elaborate here. -->

#### Additional context

<!-- Add any other context, links, etc. about the feature here. -->
19 changes: 0 additions & 19 deletions .github/PULL_REQUEST_TEMPLATE

This file was deleted.

23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--- Describe the changes here. --->

##### Relevant issues

<!--
Link to the issue(s) this pull request fixes here, if applicable: "Fixes #xxx" or "Resolves #xxx"

If your PR fixes multiple issues, list them individually like "Fixes #xx1, fixes #xx2, fixes #xx3". This is a quirk of how GitHub links issues.
-->

##### Contributor checklist

- [ ] Provide tests for the changes (unless documentation-only)
- [ ] Documented any new features, CLI switches, etc. (if applicable)
- [ ] Server `--help` output
- [ ] README.md
- [ ] doc/http-server.1 (use the same format as other entries)
- [ ] The pull request is being made against the `master` branch

##### Maintainer checklist

- [ ] Assign a version triage tag
- [ ] Approve tests if applicable
42 changes: 42 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&'

categories:
- title: 'Breaking changes'
labels:
- 'major version'
- title: 'Features and enhancements'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'fix'
- 'bug'
- title: 'Other changes'
labels:
- 'dependencies'
- 'documentation'

exclude-labels:
- "skip-changelog"
- "maintenance"
- "trivial"

version-resolver:
major:
labels:
- 'major version'
minor:
labels:
- 'minor version'
patch:
labels:
- 'patch version'
default: patch

template: |
$CHANGES
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: Test
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: [20.x, 22.x, 24.x]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
- uses: actions/checkout@v4.2.2
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v4.1.0
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npx npm@7 ci
- run: npm test
20 changes: 20 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: release-drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master

jobs:
update_release_draft:
permissions:
contents: write
pull-requests: read
if: github.repository == 'http-party/http-server'
runs-on: ubuntu-latest
steps:
# Drafts your next release notes as pull requests are merged into master
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: '25 12 * * *'

jobs:
stale:

runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write

steps:
- uses: actions/stale@v4.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 360
days-before-issue-stale: 180
days-before-pr-stale: 360
stale-issue-message: 'This issue has been inactive for 180 days'
stale-pr-message: 'This pull request has been inactive for 360 days'
stale-issue-label: 'stale'
stale-pr-label: 'stale'
exempt-issue-labels: 'no-stale'
exempt-pr-labels: 'no-stale'
exempt-all-milestones: true
days-before-close: -1
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules/*
npm-debug.log
node_modules/
npm-debug.log*
.nyc_*/
.dir-locals.el
.DS_Store
.httpserver*
.tap
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

Loading