![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Serve-RW is a lightweight file server that supports reading, writing, and deleting files via HTTP requests. It allows you to easily expose a directory over HTTP with MIME types, directory listings, and full CORS support. You can use PUT
requests to upload or replace files and DELETE
requests to remove them.
PUT
requests.DELETE
requests.You can install serve-rw globally using npm:
npm install -g serve-rw
Alternatively, you can clone the repository:
git clone https://github.com/n3rdyme/serve-rw.git
cd serve-rw
npm install
Once installed, you can run the server with:
serve-rw --port <port> --directory <path>
--port <port>
: Specify the port the server listens on (default: 3000
).--directory <path>
: Set the root directory for serving files (default: ./config
).Example:
serve-rw --port 8080 --directory /path/to/your/directory
Access any file or directory via a GET request. If the path is a directory, an HTML page listing its contents will be returned.
Example:
curl http://localhost:8080/myfile.txt
Use a PUT request to upload a new file or replace an existing one.
Example:
curl -X PUT --data-binary @yourfile.txt http://localhost:8080/uploadedfile.txt
Use a DELETE request to remove a specific file.
Example:
curl -X DELETE http://localhost:8080/myfile.txt
When a directory is requested, an HTML page with a listing of its contents will be returned. The page includes navigation links to subdirectories and a link to the parent directory (if applicable).
If an error occurs (e.g., a file is not found or the server encounters an issue), a user-friendly HTML error page will be returned, and the error will be logged to the console for easy debugging.
If you'd like to contribute:
git checkout -b feature/my-new-feature
git commit -am 'Add new feature'
git push origin feature/my-new-feature
This project is licensed under the MIT License. See the LICENSE file for details.
Find this project on GitHub: n3rdyme/serve-rw
Now you can easily expose directories over HTTP with full read-write capabilities using serve-rw. Happy serving!
FAQs
A simple http file server that also allows PUT and DELETE operations
The npm package serve-rw receives a total of 0 weekly downloads. As such, serve-rw popularity was classified as not popular.
We found that serve-rw demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.