Crop to content

Is there any way to crop the size of an artboard to the size of its content automatically? Something similar to what this plugin for AE does.

https://aescripts.com/auto-crop/