Skip to main content

Module ID Builder

EcoModuleID is a class responsible for generating a unique ID for modules.

The generated ID is a unique string of md5 hash code.

API Reference

IDBuilders

Kind: Exported class

new IDBuilders(moduleName, [nodeName])

Create an instance of the IDBuilders class

Available arguments :

ParameterTypeDescription
moduleNamestringThe name of the module.
[nodeName]stringThe name of the node within the module.

Basic Usage

Example Basic usage:

import EcoModule from "@ecoflow/module";

const generatedID = new EcoModule.IDBuilders("Hello");

console.log(generatedID);

Properties

ParameterTypeDescription
_idstringA string representing an ID.