{"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://registry-npm.ywwl.com/detect-europe-js/download/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,"noattachment":false,"key":"/detect-europe-js/-/detect-europe-js-0.1.2.tgz"},"_npmUser":{"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,"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":1730978517905,"maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"_cnpm_publish_time":1730978517905,"dist-tags":{"latest":"0.1.2"}}