UNPKG
spinner
Version:
latest (0.3.4)
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.0
Spawns child processes and allocates `process.env.PORT` for each.
eladb/node-spinner
spinner
/
test
/
scripts
/
a.js
9 lines
(8 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
console
.
log
(
'starting a'
);
var
http =
require
(
'http'
); http.
createServer
(
function
(
req, res
) { res.
end
(
'AAAAAAAAAAAAAAAA'
); }).
listen
(process.
env
.
PORT
,
function
(
err
) {
if
(err)
return
console
.
error
(err);
return
console
.
info
(
'started on port '
+ process.
env
.
PORT
); });