@hackthedev/express-starter 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,7 @@ let starter = new ExpressStarter()
|
|
|
8
8
|
|
|
9
9
|
starter.registerErrorHandlers(); // avoid crashing and enable error logging
|
|
10
10
|
starter.registerTemplateMiddleware(); // cool template engine
|
|
11
|
-
|
|
12
|
-
starter.app.use( // serve statc files
|
|
13
|
-
starter.express.static(
|
|
14
|
-
starter.dirname + "/public",
|
|
15
|
-
),
|
|
16
|
-
);
|
|
17
|
-
|
|
11
|
+
starter.app.use(starter.express.static(starter.dirname + "/public")); // serve statc files
|
|
18
12
|
starter.startHttpServer(5000) // begin listening on whatever port
|
|
19
13
|
```
|
|
20
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hackthedev/express-starter",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "This library's purpose is to get rid of the default structure you usually need and create when trying to get an express server up and running in NodeJS. It works so well in fact that you can get a server up and running with only a few lines of code, as many default variables will handle the most basic setup.",
|
|
5
5
|
"homepage": "https://github.com/NETWORK-Z-Dev/ExpressStarter#readme",
|
|
6
6
|
"bugs": {
|