-
node-mac:node.js 模块,用于获取和测试系统的 mac 地址下载
资源介绍
节点-mac
用于获取您的 mac 地址的小型 node.js 模块。
安装
npm install git://github.com/malinkie/node-mac.git
用
//Get it!
var mac = require('node-mac');
//Use it
//MAC attempts to find hosts MAC address based on commands in config.js set for the returned value of process.platform
//stdout from this command is searched though for corrosponding reg ex pattern and the first match is returned.
mac.MAC(function(err, re
- 上一篇: 手机塞班软件s60v3
- 下一篇: 通过Windows API 获得本机MAC地址