Klustre / cef-lookup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CEF Lookup

Retrieve the CEF, Chromium, NodeJS and V8 versions associated with a version of Adobe CEP.

{
    cef: '3729',
    chromium: '74.0.3729.157',
    nodejs: '12.3.1',
    cef_node: 'Node-Webkit 0.38',
    v8: '7.4.288',
}

Note: I wrote this module for a single use case. It was not tested beyond that.

The module exposes 3 functions:

cefLookup(appId, appVersion)

This function is the default export.

Parameters

  • appId: The app identifier in the format of AEFT.
  • appVersion: The app's version. Can be integer or float. Patch version numbers are ignored.

Returns

An object with all the versions.

{
    cef: '3729',
    chromium: '74.0.3729.157',
    nodejs: '12.3.1',
    cef_node: 'Node-Webkit 0.38',
    v8: '7.4.288',
}

getCepVersion(app, version)

Gets the CEP version associated with the app's version. Based on Adobe's documentation.

Parameters

  • appId: The app identifier in the format of AEFT.
  • appVersion: The app's version. Can be integer or float. Patch version numbers are ignored.

Returns

The CEP version number as an integer.

getCefVersions(cepVersion)

Gets the CEF versions associated with cepVersion. Based on Adobe's documentation.

Parameters

  • cepVersion: The CEP version as an integer.

Install

Use npm i klustre/cef-lookup --save or download the code directly from Github.

Contribute

Open a pull request or issue if you find any mistakes or want to support earlier versions.

Disclaimer

As mentioned, I wrote this module for a single use case and it was not tested beyond that. The data was taken from Adobe's own documentation.

About

License:MIT License


Languages

Language:JavaScript 100.0%