https://github.com/131/crud
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/131/crud
- Owner: 131
- License: mit
- Created: 2020-09-14T08:24:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-14T08:27:58.000Z (almost 6 years ago)
- Last Synced: 2025-04-24T07:24:53.065Z (about 1 year ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/131/crud-fs)
[](https://coveralls.io/github/131/crud-fs?branch=master)
[](https://www.npmjs.com/package/crud-fs)
[](http://opensource.org/licenses/MIT)
[](https://www.npmjs.com/package/eslint-plugin-ivs)
# Motivation
crud-fs is a simple static fs backed HTTP CRUD server. (you PUT, DELETE, GET files from the local fs). This is a lightweight read-write alternative to express.static.
# Available API
## Create or Update a file
```
echo "foo" | curl -X PUT -T - http://localhost:8090/bar
```
## Read a file
```
curl -X GET http://localhost:8090/bar
```
## Delete a file
```
curl -X DELETE http://localhost:8090/bar
```
# Not in API, maybe todo
* [ ] Move things
* [ ] List directories
* [ ] Rename things
# Credits
* [131](https://github.com/131)