npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@niivue/minc-loader

v1.0.0

Published

A MINC voxel image loader to be used with the NiiVue useLoader method

Downloads

14

Readme

minc-loader

The minc-loader is a NiiVue plugin that converts MINC format .mnc volumes into NIfTI volumes. It adapts code from brainbrowser library to read .mnc files (stored in both the older NetCDF and the more recent HDF5 structures).

Local Development

To illustrate this library, minc2nii.js is a node.js converter that can be run from the command line. The command npm run test runs some regression tests. The command npm run cli converts a MINC file to NIfTI from the command line. Finally, the command node ./src/minc2nii.js /path/to/minc/minc.mnc allows you to specify specific files to convert.

git clone [email protected]:rordenlab/minc-loader.git
cd minc-loader
npm install
npm run test
npm run cli
node ./src/minc2nii.js ./tests/testData/ax.mnc

Local Browser Development

You can also embed this loader into a hot-reloadable NiiVue web page to evaluate integration:

git clone [email protected]:rordenlab/minc-loader.git
cd minc-loader
npm install
npm run dev

Links

  • mnc2nii.py provides a Python nibabel conversion script and sample images.
  • brainbrowser code for hdf5 and netcdf reading is used here.
  • nii2mnc command line tool to convert NIfTI images to MINC (e.g. Original->In)
  • mnc2nii reference command line tool to convert MINC images to NIfTI (e.g. In->Ref)
  • mincconvert command line tool for converting between MINC1 (netcdf) and MINC2 (HDF5) formats.
  • minc2.py nibabel Python class for reading MINC2 (HDF5) images.
  • minc1.py nibabel Python class for reading MINC1 (netcdf) images.
  • minc_to_nifti.py is a minimal nibabel wrapper for converting MINC images to NIfTI, but unlike mnc2nii.py it does not preserve details such as the spatial transfomation affine matrix.