UNPKG
@rockpack/compiler
Version:
latest (7.1.0)
next (7.0.0-next.5)
7.1.0
7.0.0
7.0.0-next.5
7.0.0-next.4
7.0.0-next.3
7.0.0-next.2
7.0.0-next.1
6.0.5
6.0.3
6.0.2
6.0.1
6.0.0
6.0.0-next.5
6.0.0-next.4
6.0.0-next.3
6.0.0-next.2
6.0.0-next.1
5.0.2
5.0.1
5.0.0
5.0.0-next.8
5.0.0-next.7
5.0.0-next.6
5.0.0-next.5
5.0.0-next.4
5.0.0-next.3
5.0.0-next.2
5.0.0-next.1
4.5.2
4.5.1
4.5.0
4.4.1
4.4.0
4.3.1
4.3.0
4.2.0
4.1.0
4.0.0
4.0.0-next.5
4.0.0-next.4
4.0.0-next.3
4.0.0-next.2
4.0.0-next.1
3.1.1
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
3.0.0-next.5
3.0.0-next.4
3.0.0-next.3
3.0.0-next.2
3.0.0-next.1
2.0.1
2.0.0-rc.36
2.0.0-rc.35
2.0.0-rc.34
2.0.0-rc.33
2.0.0-rc.32
2.0.0-rc.31
2.0.0-rc.30
2.0.0-rc.29
2.0.0-rc.28
2.0.0-rc.27
2.0.0-rc.26
2.0.0-rc.25
2.0.0-rc.24
2.0.0-rc.23
2.0.0-rc.22
2.0.0-rc.21
2.0.0-rc.20
2.0.0-rc.19
2.0.0-rc.18
2.0.0-rc.17
2.0.0-rc.16
2.0.0-rc.15
2.0.0-rc.14
2.0.0-rc.13
2.0.0-rc.12
2.0.0-rc.11
2.0.0-rc.10
2.0.0-rc.9
2.0.0-rc.8
2.0.0-rc.7
2.0.0-rc.6
2.0.0-rc.5
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
1.9.0
1.8.0
1.6.1
1.6.0
1.5.0
1.1.0
1.0.0
0.9.9
0.9.9-rc1
0.9.9-rc.22
0.9.9-rc.21
0.9.9-rc.20
0.9.9-rc.19
0.9.9-rc.18
0.9.9-rc.17
0.9.9-rc.16
0.9.9-rc.15
0.9.9-rc.14
0.9.9-rc.13
0.9.9-rc.12
0.9.9-rc.11
0.9.9-rc.10
0.9.9-rc.9
0.9.9-rc.8
0.9.9-rc.7
0.9.9-rc.6
0.9.9-rc.5
0.9.9-rc.3
0.9.9-rc.2
0.9.0
The easiest webpack config generator.
alexsergey.github.io/rockpack/
AlexSergey/rockpack
@rockpack/compiler
/
utils
/
find-free-port.js
15 lines
(11 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
const
fp =
require
(
'find-free-port'
);
const
fpPromise
= (
port
) =>
new
Promise
(
(
resolve, reject
) =>
{
fp
(port,
(
err, port
) =>
{
if
(err) {
return
reject
(err); }
return
resolve
(port); }); });
module
.
exports
= fpPromise;