{"_id":"detect-europe-js","_rev":"2-fe04935951d8aba56f13d2006368c001","name":"detect-europe-js","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"detect-europe-js","version":"0.1.0","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.0","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"homepage":"https://github.com/faisalman/detect-europe-js#readme","bugs":{"url":"https://github.com/faisalman/detect-europe-js/issues"},"dist":{"shasum":"ad282d05bded59cfdbfc7b23c5abfbbfb527c48c","tarball":"https://registry.npmjs.org/detect-europe-js/-/detect-europe-js-0.1.0.tgz","fileCount":7,"integrity":"sha512-/aQyYx8VssH04+NcsJSbb1/wAVcRJF+MI+HHvIeczKaK78nlFB/f+aPIcHYrGW6tuYNLTQN4wuaeJhcljDEyvg==","signatures":[{"sig":"MEUCIBxwXxWabIq4bbOoadLYyC8TflPSs2HvOJmqo0aMVOmxAiEAkNz5oo/njNnPraDU24Odi8M8uAEcMnlRexf1dB8Oyvo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/detect-europe-js@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":14156},"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":"0d8e7692760b7f5dc162846633d1e0cbabcb3ab7","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"},"_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":"Determine whether a user is from a country within or near 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.0_1725627158776_0.5909744614955101","host":"s3://npm-registry-packages"}},"0.1.1":{"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","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"homepage":"https://github.com/faisalman/detect-europe-js#readme","bugs":{"url":"https://github.com/faisalman/detect-europe-js/issues"},"dist":{"shasum":"b12eda6a32cf701c0c9a5a3895818a12ad790e12","tarball":"https://registry.npmjs.org/detect-europe-js/-/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},"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"}},"0.1.2":{"title":"detectEurope.js","name":"detect-europe-js","version":"0.1.2","author":{"name":"Faisal Salman","email":"f@faisalman.com"},"description":"Detect if a user is from a country around the European Union (EU) area","type":"commonjs","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","exports":{".":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.js"}},"directories":{"dist":"dist","src":"src","test":"test"},"scripts":{"build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es5","build:esm":"tsc --module esnext --outDir ./dist/esm --target es6 && echo '{\"type\":\"module\"}' > ./dist/esm/package.json","build":"npm run build:cjs && npm run build:esm","build+test":"npm run build && npm run test","test":"playwright test"},"repository":{"type":"git","url":"git+https://github.com/faisalman/detect-europe-js.git"},"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"],"license":"MIT","bugs":{"url":"https://github.com/faisalman/detect-europe-js/issues"},"homepage":"https://github.com/faisalman/detect-europe-js#readme","funding":[{"type":"github","url":"https://github.com/sponsors/faisalman"},{"type":"opencollective","url":"https://opencollective.com/ua-parser-js"},{"type":"paypal","url":"https://paypal.me/faisalman"}],"devDependencies":{"@playwright/test":"~1.32.2","typescript":"^5.2.2"},"_id":"detect-europe-js@0.1.2","gitHead":"6d64c65c14bf468062811bf10370c8a77d7d8e86","types":"./dist/cjs/index.d.ts","_nodeVersion":"18.20.4","_npmVersion":"10.9.0","dist":{"integrity":"sha512-lgdERlL3u0aUdHocoouzT10d9I89VVhk0qNRmll7mXdGfJT1/wqZ2ZLA4oJAjeACPY5fT1wsbq2AT+GkuInsow==","shasum":"aa76642e05dae786efc2e01a23d4792cd24c7b88","tarball":"https://registry.npmjs.org/detect-europe-js/-/detect-europe-js-0.1.2.tgz","fileCount":8,"unpackedSize":17663,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/detect-europe-js@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxyX8bGJqPbpg/JK3+QJowf8jmOXXNrHcXZBoVGpf4eAiEApEttXh+rPfh227HoWjTnUCbyYDf8nvSsyvMgqjpuv98="}]},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-europe-js_0.1.2_1730978517740_0.29762419055766487"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-06T12:52:38.684Z","modified":"2024-11-07T11:21:58.285Z","0.1.0":"2024-09-06T12:52:38.923Z","0.1.1":"2024-09-07T13:09:05.774Z","0.1.2":"2024-11-07T11:21:57.905Z"},"bugs":{"url":"https://github.com/faisalman/detect-europe-js/issues"},"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","homepage":"https://github.com/faisalman/detect-europe-js#readme","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"],"repository":{"type":"git","url":"git+https://github.com/faisalman/detect-europe-js.git"},"description":"Detect if a user is from a country around the European Union (EU) area","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"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```","readmeFilename":"README.md"}