{"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","homepage":"https://github.com/faisalman/detect-europe-js#readme","bugs":{"url":"https://github.com/faisalman/detect-europe-js/issues"},"dist":{"shasum":"ad282d05bded59cfdbfc7b23c5abfbbfb527c48c","tarball":"http://registry-npm.ywwl.com/detect-europe-js/download/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,"size":3731,"noattachment":false,"key":"/detect-europe-js/-/detect-europe-js-0.1.0.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":"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"},"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":1725627158923,"maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"_cnpm_publish_time":1725627158923,"dist-tags":{"latest":"0.1.2"}}