next-ip2info
Get infomation from ip.
installation
npm install -S @feizheng/next-ip2info
usage
import '@feizheng/next-ip2info';
nx.ip2info('8.8.8.8').then(res=>{
console.log(res);
});
/*
{
ip: '8.8.8.8',
location: '美国 加利福尼亚州圣克拉拉县山景市谷歌公司DNS服务器',
os: '未知操作系统',
browser: '未知浏览器'
}
*/
resources
license
Code released under the MIT license.