Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@segment/in-eu

Package Overview
Dependencies
Maintainers
75
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@segment/in-eu

Privacy conscious EU detection browser library

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48K
increased by21.17%
Maintainers
75
Weekly downloads
 
Created
Source

🇪🇺 in-eu

Privacy conscious EU detection browser library

in-eu is a library for roughly detecting whether a website user is in the EU, without requiring a roundtrip to your server or a lookup against a GeoIP database.

It uses the browser's timezone (via the brilliant jstz and locale (navigator.languages) to infer whether someone is in the EU. It trades absolute accuracy for a cautious approach that's more lightweight and respectful of end-user privacy.

Usage

$ npm install @segment/in-eu
import inEU, { isInEUTimezone, isEULocale } from '@segment/in-eu'

inEU() // same as (isInEUTimezone() || isEULocale())

// or
isInEUTimezone()
isEULocale()

License

in-eu is released under the MIT license.

Keywords

FAQs

Package last updated on 05 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc