A tool to convert NIfTI images to meshes (wrapper around niimath.
Only works for Linux and Windows, but not MacOS.
const converter = require('nifti-to-mesh');
const file = convert({
input: 'my_file.nii',
output: 'output_mesh.obj'
});
console.log(file); // prints contents of output_mesh.obj as Buffer