Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pubtech-ai/stub

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pubtech-ai/stub

CMP API Stub code

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
24
decreased by-29.41%
Maintainers
2
Weekly downloads
 
Created
Source

NPM version npm module downloads per month InteractiveAdvertisingBureau

@pubtech-ai/stub

Cmp API Stub code. Maybe included in commonjs loader or dropped directly on the page.

Installation

npm

npm install @pubtech-ai/stub

yarn

yarn add @pubtech-ai/stub
Using
include via module loading
import * as cmpstub from '@pubtech-ai/stub';

or

const cmpstub = require('@pubtech-ai/stub');

then execute:

cmpstub();

this should generate the __tcfapi() window function with the queing functionality.

to drop on a page
git clone https://github.com/InteractiveAdvertisingBureau/pubtech-ai-es.git

cd pubtech-ai-es/modules/stub/

yarn // or npm install

yarn build // or npm run build

Built stub will be output to ./lib

Getting queue of commands
const queue = __tcfapi();
console.log(queue); // [ ['command', 2, callback], ...]

Keywords

FAQs

Package last updated on 27 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc