How to read nifti nii.gz file using VTK.js?

I’m also wondering if there’s a good example of code for reading DICOM series or .nii.gz files. If anyone knows, I’d appreciate you sharing it.