const box = new Box("ID", client);
const boxData = await box.load();

console.log(boxData.name); // string

Allows you to load the box’s data and access it on the client-side.

This method does not take any arguments and returns the box data.

Reference to BoxData

const box = new Box("ID", client);
const boxData = await box.load();

console.log(boxData.name); // string