🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@camunda/license-validator

Package Overview
Dependencies
Maintainers
11
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@camunda/license-validator

Validate C8 Licenses

latest
Source
npmnpm
Version
0.1.5
Version published
Maintainers
11
Created
Source

License Validator

Usage

Validate License

try {
    const licenseChecker = new LicenseChecker(licenseUtf8String);
    licenseChecker.validate(); // Prints License to sysout + if the license is valid or not

    return {
        isValid: true
    };
} catch (error) { // throws if license is invalid/expired/not a c8 license
    return {
        isValid: false
    };
}

Get Properties

const licenseChecker = new LicenseChecker(licenseUtf8String);
licenseChecker.validate();
licenseChecker.getValue('customer') // returns the property with the key `customer`

Get All Properties

const licenseChecker = new LicenseChecker(licenseUtf8String);
licenseChecker.validate();
const map:Map<string, string> = licenseChecker.getAllKeyValues();

Validate test Licenses

const licenseChecker = new LicenseChecker(licenseUtf8String, true);
licenseChecker.validate();

Use a custom logger

const licenseChecker = new LicenseChecker(licenseUtf8String,
    false,
    (info: string) => {myInfoLogger(text)},
    (err: string) => {myErrorLogger(text)});
licenseChecker.validate();

FAQs

Package last updated on 21 Jan 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