IOConnectOffice()
Factory function for initializing the `@interopio/office` library.
You can optionally pass a configuration object to customize the behavior of the library.
Parameters (1)
| Name | Type | Required | Description |
|---|---|---|---|
| config⚓︎ | Config | x | Optional configuration object for the |
Example
import IOConnectOffice from "@interopio/office";
// Optional configuration for the library.
const config = {
// Disabling the Excel and Word APIs.
excel: false,
word: false,
};
// Initializing the library and obtaining a reference to the API object.
const office = await IOConnectOffice(config);