{"name":"detect-europe-js","version":"0.1.1","keywords":["ua-parser-js","detect-europe-js","detect-country","timezone","europe","eu","eea","efta","schengen","gdpr","dma","dsa","dga","data-act","ai-act","cybersecurity-act"],"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","_id":"detect-europe-js@0.1.1","homepage":"https://github.com/faisalman/detect-europe-js#readme","bugs":{"url":"https://github.com/faisalman/detect-europe-js/issues"},"dist":{"shasum":"b12eda6a32cf701c0c9a5a3895818a12ad790e12","tarball":"http://registry-npm.ywwl.com/detect-europe-js/download/detect-europe-js-0.1.1.tgz","fileCount":7,"integrity":"sha512-+bUXDf+tI3L4dcEuRdAFa44Amx9aEaJzoZssx7Xis4H1bXWc5fAcOP850BOj0wJPRzOdovOuOVEvrg6T+GflZA==","signatures":[{"sig":"MEUCICja9Iv2Es0WYpTpzGVCehlIbcbBToA6XSX90KB1eL8aAiEAiOE6sLsECZEQ1oFMRKY5K4ScuqZmBoZHcuYA7gM4b3I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/detect-europe-js@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17521,"size":3992,"noattachment":false,"key":"/detect-europe-js/-/detect-europe-js-0.1.1.tgz"},"main":"./dist/cjs/index.js","type":"commonjs","title":"detectEurope.js","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"funding":[{"url":"https://github.com/sponsors/faisalman","type":"github"},{"url":"https://opencollective.com/ua-parser-js","type":"opencollective"},{"url":"https://paypal.me/faisalman","type":"paypal"}],"gitHead":"b638c4b91632f67641b19211052f710804c5382d","scripts":{"test":"playwright test","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es5","build:esm":"tsc --module esnext --outDir ./dist/esm --target es6","build+test":"npm run build && npm run test"},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"repository":{"url":"git+https://github.com/faisalman/detect-europe-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Detect if a user is from a country around the European Union (EU) area","directories":{"src":"src","dist":"dist","test":"test"},"_nodeVersion":"18.20.4","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@playwright/test":"~1.32.2"},"_npmOperationalInternal":{"tmp":"tmp/detect-europe-js_0.1.1_1725714545629_0.8889714562262812","host":"s3://npm-registry-packages"},"readme":"# detectEurope.js\n\nDetect if a user is from a country around the European Union (EU), EFTA, EEA, or Schengen area based on their timezone settings.\n\n```sh\nnpm i detect-europe-js\n```\n\n### * `isFromEU(): boolean`\n\nEuropean Union (EU) countries\n\n### * `isFromEEA(): boolean`\n\nEU countries + Iceland, Liechtenstein and Norway\n\n### * `isFromEFTA(): boolean`\n\nSwitzerland + Iceland, Liechtenstein and Norway\n\n### * `isFromSchengen(): boolean`\n\nSchengen countries (including Romania, Bulgaria, and several microstates)\n\n## Code Example\n\n```js\nimport { isFromEU } from 'detect-europe-js';\n\nif(isFromEU()) {\n    // show cookie banner\n}\n```","publish_time":1725714545774,"maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"_cnpm_publish_time":1725714545774,"dist-tags":{"latest":"0.1.2"}}