‚̧Nimble Porridge Muncher
    Wondering what‚Äôs next for npm?Check out our public roadmap! ¬Ľ

    didomi-iabtcf-testing
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.4-1¬†‚Äʬ†Public¬†‚Äʬ†Published

    NPM version npm module downloads per month InteractiveAdvertisingBureau

    didomi-iabtcf-testing

    Testing tools to generate randomized input/output

    Installation

    npm

    npm install didomi-iabtcf-testing --save-dev
    

    yarn

    yarn add -D didomi-iabtcf-testing
    

    Utilities

    TCModelFactory

    Generate random TCModel with GVL

    import { TCModelFactory } from "didomi-iabtcf-testing";
     
    const tcModel = TCModelFactory.withGVL();

    Generate random TC string

    import { TCString } from "didomi-iabtcf-core";
    import { TCModelFactory } from "didomi-iabtcf-testing";
     
    console.log(TCString.decode(TCModelFactory.noGVL()));
    // ... random tc string

    Add publisher restrictions

    import { TCModelFactory } from "didomi-iabtcf-testing";
    let tcModel = TCModelFactory.withGVL();
    tcModel = TCModelFactory.addPublisherRestrictions(tcModel);
    // now has random publisher restrictions

    GVLFactory

    Get latest GVL

    import { GVLFactory } from "didomi-iabtcf-testing";
    import { GVL } from "didomi-iabtcf-core";
     
    const gvl = GVLFactory.getLatest();

    Get version of GVL

    import { GVLFactory } from "didomi-iabtcf-testing";
    import { GVL } from "didomi-iabtcf-core";
     
    const gvl = GVLFactory.getVersion(10);

    Install

    npm i didomi-iabtcf-testing

    DownloadsWeekly Downloads

    0

    Version

    1.1.4-1

    License

    Apache-2.0

    Unpacked Size

    4.81 MB

    Total Files

    109

    Homepage

    iabtcf.com/

    Last publish

    Collaborators

    • avatar