# Intro

@glue42/office is a JavaScript library that allows Glue42-enabled applications to interact with Microsoft Office applications, using [Glue42 Desktop](https://glue42.com/) functionalities.

@glue42/office includes the following modules:
* Excel
* Outlook
* Word
* (upcoming) PowerPoint

For more information, check the [Glue42 Office Connectors documentation](https://docs.glue42.com/connectors/general-overview/index.html).

# Usage

```javascript
import Glue4Office from "@glue42/office";

const g4oConfig = {
    application: 'Office Interop',
    excel: true,    // enable Excel interop
    word: true,     // enable Word interop
    outlook: false  // disable Outlook interop
}
Glue4Office(g4oConfig)
    .then(g4o => {
        // g4o is a reference to the Glue4Office API
        window.g4o = g4o // expose g4o as a global var
        // use g4o
    })
    .catch(console.error)
```
