UNPKG
eureka-client-ts
Version:
latest (0.3.6)
0.3.6
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.10
0.2.8
0.2.5
0.2.3
0.2.1
0.2.0
0.1.8
0.1.7
0.1.6
0.1.4
0.1.3
0.1.2
eureka-client-ts
/
example
/
index.ts
13 lines
(10 loc)
•
246 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
import
Eurekaclient
from
'../src/index'
const
client =
new
Eurekaclient
({
port
:
3000
,
appName
:
'huhu'
,
services
: [
'projectx'
], }); (
async
() => {
await
client.
start
();
console
.
log
(client.
getHost
(
'projectx'
,
'10.10.95.74'
,
''
)); })();