{"versions":{"0.1.0":{"title":"detectEurope.js","name":"detect-europe-js","version":"0.1.0","author":{"name":"Faisal Salman","email":"f@faisalman.com"},"description":"Determine whether a user is from a country within or near 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","build":"npm run build:cjs && npm run build:esm","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.0","gitHead":"0d8e7692760b7f5dc162846633d1e0cbabcb3ab7","types":"./dist/cjs/index.d.ts","_nodeVersion":"18.20.4","_npmVersion":"10.8.3","dist":{"integrity":"sha512-/aQyYx8VssH04+NcsJSbb1/wAVcRJF+MI+HHvIeczKaK78nlFB/f+aPIcHYrGW6tuYNLTQN4wuaeJhcljDEyvg==","shasum":"ad282d05bded59cfdbfc7b23c5abfbbfb527c48c","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/detect-europe-js/-/detect-europe-js-0.1.0.tgz","fileCount":7,"unpackedSize":14156,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/detect-europe-js@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxwXxWabIq4bbOoadLYyC8TflPSs2HvOJmqo0aMVOmxAiEAkNz5oo/njNnPraDU24Odi8M8uAEcMnlRexf1dB8Oyvo="}],"size":3731},"_npmUser":{"name":"anonymous","email":"fyzlman@gmail.com"},"maintainers":[{"name":"anonymous","email":"fyzlman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-europe-js_0.1.0_1725627158776_0.5909744614955101"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-06T12:52:38.923Z","publish_time":1725627158923,"_source_registry_name":"default","contributors":[]},"0.1.1":{"title":"detectEurope.js","name":"detect-europe-js","version":"0.1.1","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","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.1","gitHead":"b638c4b91632f67641b19211052f710804c5382d","types":"./dist/cjs/index.d.ts","_nodeVersion":"18.20.4","_npmVersion":"10.8.3","dist":{"integrity":"sha512-+bUXDf+tI3L4dcEuRdAFa44Amx9aEaJzoZssx7Xis4H1bXWc5fAcOP850BOj0wJPRzOdovOuOVEvrg6T+GflZA==","shasum":"b12eda6a32cf701c0c9a5a3895818a12ad790e12","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/detect-europe-js/-/detect-europe-js-0.1.1.tgz","fileCount":7,"unpackedSize":17521,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/detect-europe-js@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICja9Iv2Es0WYpTpzGVCehlIbcbBToA6XSX90KB1eL8aAiEAiOE6sLsECZEQ1oFMRKY5K4ScuqZmBoZHcuYA7gM4b3I="}],"size":3992},"_npmUser":{"name":"anonymous","email":"fyzlman@gmail.com"},"maintainers":[{"name":"anonymous","email":"fyzlman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-europe-js_0.1.1_1725714545629_0.8889714562262812"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-07T13:09:05.774Z","publish_time":1725714545774,"_source_registry_name":"default","contributors":[]},"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":"http://123.232.10.234:8212/nexus/content/groups/npm-public/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="}],"size":4076},"_npmUser":{"name":"anonymous","email":"fyzlman@gmail.com"},"maintainers":[{"name":"anonymous","email":"fyzlman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detect-europe-js_0.1.2_1730978517740_0.29762419055766487"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-11-07T11:21:57.905Z","publish_time":1730978517905,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.2"},"name":"detect-europe-js","time":{"created":"2024-09-06T14:59:44.017Z","modified":"2024-11-07T12:05:56.126Z","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"},"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```","users":{}}