UNPKG
tlr
Version:
latest (1.0.0)
1.0.0
Quick spawn a tiny-lr server
github.com/ruyadorno/tlr
ruyadorno/tlr
tlr
/
index.js
13 lines
(8 loc)
•
188 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env node
'use strict'
;
const
port = process.
env
.
LR_PORT
||
35729
;
require
(
'tiny-lr'
)() .
listen
( port,
() =>
console
.
log
(
`livereload[tiny-lr] listening on
${port}
`
) );