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

@testing-org-32/testing

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-org-32/testing

Shared testing utilities

  • 1.5.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
0
Weekly downloads
 
Created
Source

NPM version npm module downloads per month InteractiveAdvertisingBureau

@iabtechlabtcf/testing

Testing tools to generate randomized input/output

Installation

npm

npm install @iabtechlabtcf/testing --save-dev

yarn

yarn add -D @iabtechlabtcf/testing
Utilities

TCModelFactory

Generate random TCModel with GVL


import {TCModelFactory} from '@iabtechlabtcf/testing';

const tcModel = TCModelFactory.withGVL();

Generate random TC string

import {TCString} from '@iabtechlabtcf/core';
import {TCModelFactory} from '@iabtechlabtcf/testing';

console.log(TCString.encode(TCModelFactory.noGVL()));
// ... random tc string

Add publisher restrictions


import {TCModelFactory} from '@iabtechlabtcf/testing';
let tcModel = TCModelFactory.withGVL();
tcModel = TCModelFactory.addPublisherRestrictions(tcModel);
// now has random publisher restrictions

GVLFactory

Get latest GVL

import {GVLFactory} from '@iabtechlabtcf/testing';
import {GVL} from '@iabtechlabtcf/core';

const gvl = GVLFactory.getLatest();

Get version of GVL

import {GVLFactory} from '@iabtechlabtcf/testing';
import {GVL} from '@iabtechlabtcf/core';

const gvl = GVLFactory.getVersion(10);

Keywords

FAQs

Package last updated on 19 Aug 2024

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