1.0.4 • Published 1 month ago

rbs-timezone v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 month ago

rbs-fingerprints

Get ip info by user's ip or proxy. CommonJS support and ES Modules support.

NPM Version

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:GkmAVF3V@116.108.245.71:16011'
    // proxy: 'socks://d6OKt1FU:3NttBdHd@27.68.110.241: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
1.0.4

1 month ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago