{"_id":"@anowlet/cookie-consent","_rev":"1-52a38d8ec15b60933de91d8f3d63885d","name":"@anowlet/cookie-consent","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.2":{"name":"@anowlet/cookie-consent","version":"1.0.2","description":"## A Simple Cookie Consent Manager","keywords":[],"main":"dist/cookie-consent.umd.js","unpkg":"dist/cookie-consent.umd.js","module":"dist/cookie-consent.esm.js","source":"src/index.js","types":"types/index.d.ts","author":{"name":"Anowlet"},"repository":{"type":"git","url":"git+https://github.com/anowlet/cookie-consent.git"},"license":"MIT","engines":{"node":">=10.18"},"publishConfig":{"access":"public"},"scripts":{"check-types":"tsc --noEmit","lint":"eslint src --fix --ext .ts,.tsx,.js,.jsx","format":"prettier --write \"{src,test}/**/*.{js,ts}\" \"**/*.md\"","format:check":"prettier --list-different \"{src,test}/**/*.{js,ts}\" \"**/*.md\"","prebuild":"rimraf lib dist es coverage types","build":"cross-env rollup -c rollup.config.ts","start":"cross-env NODE_ENV=development rollup -c rollup.config.ts -w","typedoc":"typedoc --out docs --target es6 --theme minimal --mode file src","test":"jest --coverage","test:watch":"jest --coverage --watch","test:prod":"npm run lint && npm run test -- --no-cache","report-coverage":"cat ./coverage/lcov.info | coveralls","commit":"git-cz","release":"semantic-release","semantic-release-prepare":"ts-node scripts/semantic-release-prepare","precommit":"lint-staged","prepush":"npm run test:prod && npm run build","commitmsg":"commitlint -E HUSKY_GIT_PARAMS","semantic-release":"semantic-release"},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"lint-staged":{"*.{ts,tsx,js}":["npm run lint","git add"]},"config":{"commitizen":{"path":"node_modules/cz-conventional-changelog"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"devDependencies":{"@commitlint/cli":"^9.0.1","@commitlint/config-conventional":"^8.3.4","@rollup/plugin-commonjs":"^12.0.0","@rollup/plugin-node-resolve":"^8.0.0","@rollup/plugin-replace":"^2.3.2","@semantic-release/changelog":"^5.0.1","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/git":"^9.0.0","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","@types/jest":"^25.2.3","@types/lodash":"^4.14.155","@types/node":"^14.0.10","@typescript-eslint/eslint-plugin":"^3.1.0","@typescript-eslint/parser":"^3.1.0","colors":"^1.4.0","commitizen":"^4.1.2","coveralls":"^3.1.0","cross-env":"^7.0.2","cz-conventional-changelog":"^3.2.0","eslint":"^7.1.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.3","husky":"^4.2.5","jest":"^26.0.1","jest-config":"^26.0.1","lint-staged":"^10.2.8","prettier":"^2.0.5","prompt":"^1.0.0","replace-in-file":"^6.0.0","rimraf":"^3.0.2","rollup":"^2.13.1","rollup-plugin-filesize":"^9.0.0","rollup-plugin-livereload":"^1.3.0","rollup-plugin-postcss":"^3.1.1","rollup-plugin-serve":"^1.0.1","rollup-plugin-terser":"^5.3.0","rollup-plugin-typescript2":"^0.27.1","semantic-release":"^17.0.8","shelljs":"^0.8.4","ts-jest":"^26.1.0","ts-node":"^8.10.2","typedoc":"^0.17.7","typescript":"^3.9.3"},"dependencies":{"lodash":"^4.17.15","redom":"^3.27.1"},"gitHead":"6b4311808b56a7e4bfd2cc7e168cd1ef1e219c97","bugs":{"url":"https://github.com/anowlet/cookie-consent/issues"},"homepage":"https://github.com/anowlet/cookie-consent#readme","_id":"@anowlet/cookie-consent@1.0.2","_nodeVersion":"12.16.3","_npmVersion":"6.14.5","dist":{"integrity":"sha512-zsVjc8KunpQww99hyHCsfJUm13sk06WvUj6+pdjOlWwZe8AlSG7a2SG3cg0imN66szJHagDLUOs4dYh6kteZ3g==","shasum":"3aab2431bd2d86a779d80d28b5bdd69f7aa9912c","tarball":"https://registry.npmjs.org/@anowlet/cookie-consent/-/cookie-consent-1.0.2.tgz","fileCount":32,"unpackedSize":209886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe6h7WCRA9TVsSAnZWagAAfWUP/jAPiSSeH44mSa+64gHx\nPXZaQyxhmXXB9qFA/ciiHn4DuxHRThdAv8S7RWAE9jTo6VNx+Ou//AucnQsC\nzt2R4rgIjArXhgPptYHN24T/Psao94iDAGaFXJQEFRmTtlMEsEgcZEvFvnGG\nk5Opn0QNnDE3d1L0xoWTFhrf9Ox6mEU6BosGL+zwJBuGXjlmQO5eBu4jYcsU\ngarlpXU/Bnk0VKyttx93nE1/RWciBSx4wTuTsrDGh6nkZvWnmKYaZj9X8S3f\nmjKo0OcDbu389MhAJJknvxpK3/DlbjjfOnZqkjrd0XCYHEUcFxKc5gde1g4W\ncd5ZB6j+0GFolOLoz3w1vwVpsEYQ9LlODf0PA17MU0wg1bde+qvjkReLXEk7\n0m6Ge8YV2FNWY71drXZPbx+gph0v8Av7Zr9L0DWzBQaYSr8rmqWX9UoSKo0d\nUwTBayx3z8MH/iW96Whxyn5bsAkb8IUaz9Obdiv7Ro3KQ7z1E5JDa6aTjmht\n4F4k/8clLC0z/vM+Wr4GHYJTyB+9m+WDuDmqWRQE0nOnyHKNccTTkhhwRmde\nuUjRafojET116ySV8vw8qZnxii/Ylj+Xo+jBVedsjCfb1mWyQ8QJfAZ6lY8d\nhoMHxXB4QroLznyvaXE2l2BAA5X5knp29lnjDpbHEtL2Jp4KaGsxx4duhdfT\nC8HQ\r\n=bFt1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCrVJ07/88C3GaFMUDqw2XGbMTOkT+U3glMktKl64DDfgIhAM+TEqgTEkLTi6uYLCzr6xkIkvcoHWcERxJ4MnFU/7IZ"}]},"maintainers":[{"name":"anowlet","email":"owlet.alpha@gmail.com"}],"_npmUser":{"name":"anowlet","email":"owlet.alpha@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cookie-consent_1.0.2_1592401621892_0.5552039306759753"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-17T13:47:01.838Z","1.0.2":"2020-06-17T13:47:02.063Z","modified":"2022-04-04T14:19:20.225Z"},"maintainers":[{"name":"anowlet","email":"owlet.alpha@gmail.com"}],"description":"## A Simple Cookie Consent Manager","homepage":"https://github.com/anowlet/cookie-consent#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/anowlet/cookie-consent.git"},"author":{"name":"Anowlet"},"bugs":{"url":"https://github.com/anowlet/cookie-consent/issues"},"license":"MIT","readme":"# Cookie Consent\n\n## A Simple Cookie Consent Manager\n\n[![Actions Status](https://github.com/anowlet/cookie-consent/workflows/Node.js%20CI/badge.svg)](https://github.com/anowlet/cookie-consent/actions)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\nIt is a Javascript based solution for blocking / allowing even 3rd party cookies to comply with GDPR & CCPA.\n\n### [demo](/)\n\n### Feature\n\n- Support PC and mobile cookie banner display, responsive\n- Lifecycle hooks, giving users the opportunity to add your own code at specific stages\n- Multi-lingual, supports EU language\n- Support removing unwanted cookies\n- Users can customize whether the country complies with CCPA & GDPR\n- Support different UA whether to display cookie banner\n- Hosted on AWS Cloudfront with edges around the globe for\n- Four different blocking methods\n\n#### Dynamic script tags\n\nSome services insert dynamically created script tags to the HEAD at page load. These can be intercepted and blocked.\n\n#### Script tag blocking\n\nSome third party services require you to insert a script tag into your HTML pages. These can be inactivated until the user allowes them.\n\n#### Script wrapping\n\nSome services are not inserted in a SCRIPT tag and are obscured by layers of other code. Thats why this script creates a global wrapper function what you can use to wrap and blovk any JS code.\n\n#### Local cookies\n\nFinally the local cookies set on your domain can be also filtered by overriding the bowsers COOKIE SET method.\n\n### Usage\n\n#### Module\n\n```javascript\nimport CookieConsent from 'cookie-consent';\n// or\nconst CookieConsent = require('cookie-consent');\n```\n\n#### Classic\n\n```html\n<!-- Specify the version -->\n<script src=\"./cookie-consent.umd.js\"></script>\n<script>\n  var CookieConsent = window.CookieConsent;\n</script>\n```\n\n#### Initialization\n\n```javascript\nvar cc = new CookieConsent({\n  //...options,\n});\n```\n\n#### Configuration Options\n\n```javascript\n  new CookieConsent({\n    language: 'en',\n  });\n  </script>\n```\n\n#### Instance Methods\n\n#### Events\n\n```javascript\ncc.on('initialized', (...args) => console.log(args));\ncc.on('error', console.error);\ncc.on('popupOpened', () => console.log('Popup Open'));\ncc.on('popupClosed', () => console.log('Popup Closed'));\ncc.on('modalOpened', () => console.log('Modal Open'));\ncc.on('modalClosed', () => console.log('Modal Closed'));\ncc.on('statusChanged', (...args) => console.log(args));\n```\n\n### Browsers support\n\n| [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png\" alt=\"IE / Edge\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br/>IE / Edge | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png\" alt=\"Firefox\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br/>Firefox | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png\" alt=\"Chrome\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br/>Chrome | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png\" alt=\"Safari\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br/>Safari | [<img src=\"https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari-ios/safari-ios_48x48.png\" alt=\"iOS Safari\" width=\"24px\" height=\"24px\" />](http://godban.github.io/browsers-support-badges/)<br/>iOS Safari |\n| --------- | --------- | --------- | --------- | --------- |\n| IE11, Edge| last 2 versions| last 2 versions| last 2 versions| last 2 versions\n\n### NPM scripts\n\n- `npm t`: Run test suite\n- `npm start`: Run `npm run build` in watch mode\n- `npm run test:watch`: Run test suite in [interactive watch mode](http://facebook.github.io/jest/docs/cli.html#watch)\n- `npm run test:prod`: Run linting and generate coverage\n- `npm run build`: Generate bundles and typings, create docs\n- `npm run lint`: Lints code\n- `npm run commit`: Commit using conventional commit style ([husky](https://github.com/typicode/husky) will tell you to use it if you haven't :wink:)\n\n### Automatic releases\n\n### FAQ\n\nContributions of any kind are welcome!\n","readmeFilename":"README.md"}