Skip to content

Commit

Permalink
Published to npm and fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Abrifq committed Jul 10, 2021
1 parent 3827092 commit 388f21c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 26 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function getApiReady(){
```

## Serving static files
Assuming we have files in "/app/www" we want to serve, but [filter out](#Changing-port) `.git` requests.
Assuming we have files in "/app/www" we want to serve, but [filter out](#Blacklisting-requests-by-filtering-parts-of-the-requestst) `.git` requests.
```js
const serverInterface = require("dirty-serve");
serverInterface.pathFilters.add(".git");
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 35 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,35 @@
{
"name": "dirty-serve",
"version": "0.0.2",
"description": "An easy, quick and dirty way to host your static web files with an optional API path interface!",
"main": "server-interface.js",
"scripts": {
"test": "node ./tests",
"start": "node server.js"
},
"keywords": [
"web",
"server",
"dynamic",
"static",
"simple"
],
"author": "fbarda",
"license": "MIT",
"dependencies": {
"mimetype": "^0.0.8",
"websocket": "^1.0.34"
}
}
{
"name": "@fbarda/dirty-serve",
"version": "0.0.6",
"description": "An easy, quick and dirty way to host your static web files with an optional API path interface!",
"main": "server-interface.js",
"scripts": {
"test": "node ./tests",
"start": "node server.js"
},
"keywords": [
"web",
"server",
"dynamic",
"static",
"simple"
],
"author": "fbarda",
"license": "MIT",
"dependencies": {
"mimetype": "^0.0.8",
"websocket": "^1.0.34"
},
"directories": {
"test": "tests"
},
"devDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/fbarda/dirty-serve.git"
},
"bugs": {
"url": "https://github.com/fbarda/dirty-serve/issues"
},
"homepage": "https://github.com/fbarda/dirty-serve#readme"
}

0 comments on commit 388f21c

Please sign in to comment.