rbs-timezone
v1.0.4
Published
> Get ip info by user's ip or proxy. CommonJS support and ES Modules support.
Downloads
61
Readme
rbs-fingerprints
Get ip info by user's ip or proxy. CommonJS support and ES Modules support.
Installation
npm install rbs-timezone --save
Build
npm run build
Usage
// ES6
// import timezone from 'rbs-timezone';
const timezone = require('rbs-timezone');
const opts = {
proxy: 'http://ODuQc79d:[email protected]:16011'
// proxy: 'socks://d6OKt1FU:[email protected]:14104'
};
const tz = await timezone(opts);
console.log(tz);
// {
// ip: '2402:800:61b3:da9d:cc4d:a73a:df4e:187c',
// country: 'VN',
// stateProv: 'Hanoi',
// city: 'Hanoi',
// ll: [ 21.0292, 105.8526 ],
// timezone: 'Asia/Bangkok',
// languages: 'vi',
// accuracy: 100
// }
Release History
- 1.0.4
- Fix: Could not get the public IP address (using new list APIs for get ip address)
- Add: Testing
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- Get timezone