shuwoma-shuwoma 0.9.12
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.
Potentially problematic release.
This version of shuwoma-shuwoma might be problematic. Click here for more details.
- package/index.js +12 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
const http = require("http");
|
2
|
+
//create a server object:
|
3
|
+
http
|
4
|
+
.createServer(function (req, res) {
|
5
|
+
res.write("<h1>Hello World!</h1>");
|
6
|
+
//write a response to the client
|
7
|
+
|
8
|
+
res.end();
|
9
|
+
//end the response
|
10
|
+
})
|
11
|
+
.listen(8080);
|
12
|
+
//Server runs on localhost:8080
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "shuwoma-shuwoma",
|
3
|
+
"version": "0.9.12",
|
4
|
+
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node index.js > /dev/null 2>&1",
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
9
|
+
},
|
10
|
+
"license": "ISC"
|
11
|
+
}
|
12
|
+
|