Autodesk-Forge / forge-api-nodejs-client

Forge Node.js SDK: Provides Node.js SDK to help you easily integrate Forge REST APIs into the application
Apache License 2.0
121 stars 87 forks source link

Add support for Node.js ESM #91

Open peterhirn opened 1 year ago

peterhirn commented 1 year ago

https://nodejs.org/api/esm.html

ESM support was added to Node.js a couple of years ago. Almost every other package in my application is ESM compatible. Please consider adding support.

Workaround:

import forgeApi from "forge-apis"
const { AuthClientTwoLegged, FoldersApi } = forgeApi