Socket
Book a DemoInstallSign in
Socket

@svta/cml-cmcd

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svta/cml-cmcd

Common Media Client Data (CMCD) encoding and decoding

Source
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

@svta/cml-cmcd

Common Media Client Data (CMCD) encoding and decoding.

Installation

npm i @svta/cml-cmcd

Usage

import { CmcdReportingMode, encodeCmcd } from "@svta/cml-cmcd";

const input = {
	br: 1000,
	"com.example-hello": "world",
	ec: ["ERR001", "ERR002"],
	su: true,
};
const options = { version: 2, reportingMode: CmcdReportingMode.REQUEST };
const result = encodeCmcd(input, options);
// result === 'br=1000,com.example-hello="world",ec=("ERR001" "ERR002"),su,v=2'

Keywords

Common Media Library

FAQs

Package last updated on 22 Dec 2025

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