UNPKG
node-getmacip
Version:
latest (1.0.0)
1.0.0
Get local IP address and MAC address
node-getmacip
/
README.md
30 lines
(20 loc)
•
281 B
Markdown
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## 安装
``
` npm install node-getmacip `
``
## 导入
``
` const {getMac, getIp} = require('node-getmacip') `
``
## 获取 mac
``
` let mac = getMac() console.log(mac) `
``
## 获取 ip
``
` let ip = getIp() console.log(ip) `
``
## 开源协议
ISC