Connect to Master File

2. connect(masterFileIdOrName: string | number, password: string)

Description: Connects to an existing master file, decrypting it and loading its content files into ulda.data.

Parameters:

  • masterFileIdOrName: string | number - Master file's name (e.g., userVault) or ID.

  • password: string - Password to decrypt the master file.

Example:

await ulda.connect('userVault', 'securePass123'); console.log('Connected to master file'); // Output: Connected to master file
API