Javascript LTI Iframe parent.postMessage communication messages.
Using NPM:
npm install lti-messaging
Using Yarn:
yarn add lti-messaging
Just import the Canvas app and your plug-ins and add them to the app:
import ToolProvider from 'lti-messaging';
ToolProvider.frameResize(500);
For more information see API documentation.