{"_id":"@cookiepal-labs/iabtcf-stub","_rev":"1-72b47f9c9c91d9d0024f6c9440caa5f3","name":"@cookiepal-labs/iabtcf-stub","dist-tags":{"latest":"1.5.13"},"versions":{"1.5.13":{"name":"@cookiepal-labs/iabtcf-stub","version":"1.5.13","keywords":["interactive","advertising","bureau","iab","transparency","consent","consentstring","tcstring","gvl","vendor","framework","tcf","lib","library","cmp","2.0","v2.0","v2","software","development","api","kit","sdk","gdpr"],"author":{"name":"Mayank Mishra","email":"mayank@iabtechlab.com"},"license":"Apache-2.0","_id":"@cookiepal-labs/iabtcf-stub@1.5.13","maintainers":[{"name":"luis-ortiz","email":"luis.ortiz@westpoint.io"},{"name":"cookiepal","email":"support@cookiepal.io"}],"homepage":"https://iabtcf.com/","bugs":{"url":"https://github.com/InteractiveAdvertisingBureau/iabtcf-es/issues"},"dist":{"shasum":"a902785d7846858b36a2f3d9651895bbe42abe5b","tarball":"https://registry.npmjs.org/@cookiepal-labs/iabtcf-stub/-/iabtcf-stub-1.5.13.tgz","fileCount":3,"integrity":"sha512-X/kYLgQ0pHoWbXENzlfJLTsyM1knTyrVwjvS6YqpznbmJIv3UP8C1+RpSBPkdvgkm+7OgKxCmOt1iq6VNLTicQ==","signatures":[{"sig":"MEUCIGOFOVrFETt8cHFPj314MdIC68kVl/Wb6PBtviuDuftgAiEA/B/D3sIh42mhJbAWEV16ppgrevh0POx0RJ8e5B6gy/Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4132},"main":"lib/stub.js","gitHead":"510282077166844627f9e929720b9da02ff9da0a","scripts":{"lint":"exit 0","build":"rm -rf lib && mkdir lib ; babel src/stub.js | terser -m -c -o lib/stub.js","build-dev":"rm -rf lib && ln -s src lib","preversion":"echo 'woops I think you meant to go to the root' && exit 1"},"_npmUser":{"name":"luis-ortiz","email":"luis.ortiz@westpoint.io"},"repository":{"url":"git+https://github.com/InteractiveAdvertisingBureau/iabtcf-es.git","type":"git","directory":"modules/stub"},"_npmVersion":"10.2.4","description":"CMP API Stub code","directories":{},"_nodeVersion":"20.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"6.8.0","terser":"^4.8.1","@babel/cli":"^7.7.5","@babel/core":"^7.7.5","@babel/preset-env":"^7.7.6","@babel/helper-validator-identifier":"^7.10.4"},"_npmOperationalInternal":{"tmp":"tmp/iabtcf-stub_1.5.13_1724157927833_0.7436300524876727","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-08-20T12:45:27.731Z","modified":"2024-09-09T12:13:01.396Z","1.5.13":"2024-08-20T12:45:27.984Z"},"bugs":{"url":"https://github.com/InteractiveAdvertisingBureau/iabtcf-es/issues"},"author":{"name":"Mayank Mishra","email":"mayank@iabtechlab.com"},"license":"Apache-2.0","homepage":"https://iabtcf.com/","keywords":["interactive","advertising","bureau","iab","transparency","consent","consentstring","tcstring","gvl","vendor","framework","tcf","lib","library","cmp","2.0","v2.0","v2","software","development","api","kit","sdk","gdpr"],"repository":{"url":"git+https://github.com/InteractiveAdvertisingBureau/iabtcf-es.git","type":"git","directory":"modules/stub"},"description":"CMP API Stub code","maintainers":[{"email":"eduardo.guimaraes@westpoint.io","name":"duardolv.wp"},{"email":"luis.ortiz@westpoint.io","name":"luis-ortiz"},{"email":"support@cookiepal.io","name":"cookiepal"}],"readme":"[![NPM version](https://img.shields.io/npm/v/@iabtechlabtcf/stub.svg?style=flat-square)](https://www.npmjs.com/package/@iabtechlabtcf/stub)\n[![npm module downloads per month](http://img.shields.io/npm/dm/@iabtechlabtcf/stub.svg?style=flat)](https://www.npmjs.org/package/@iabtechlabtcf/stub)\n[![InteractiveAdvertisingBureau](https://circleci.com/gh/InteractiveAdvertisingBureau/iabtcf-es.svg?style=shield)](https://circleci.com/gh/InteractiveAdvertisingBureau/iabtcf-es)\n\n# @iabtechlabtcf/stub\n\nCmp API Stub code.  Maybe included in commonjs loader or dropped directly on the page.\n\n#### Installation\n\nnpm\n```\nnpm install @iabtechlabtcf/stub\n```\n\nyarn\n```\nyarn add @iabtechlabtcf/stub\n```\n#### Using\n\n##### include via module loading\n```javascript\nimport * as cmpstub from '@iabtechlabtcf/stub';\n```\nor\n\n```javascript\nconst cmpstub = require('@iabtechlabtcf/stub');\n```\n\nthen execute:\n\n```javascript\ncmpstub();\n```\nthis should generate the `__tcfapi()` window function with the queing functionality.\n\n##### to drop on a page\n```\ngit clone https://github.com/InteractiveAdvertisingBureau/iabtechlabtcf-es.git\n\ncd iabtechlabtcf-es/modules/stub/\n\nyarn // or npm install\n\nyarn build // or npm run build\n```\n\nBuilt stub will be output to ./lib\n\n##### Getting queue of commands\n\n```javascript\nconst queue = __tcfapi();\nconsole.log(queue); // [ ['command', 2, callback], ...]\n```\n","readmeFilename":"README.md"}