Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nifti-reader-js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nifti-reader-js

A JavaScript NIfTI file format reader.

  • 0.2.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5K
increased by3.48%
Maintainers
1
Weekly downloads
 
Created
Source

NIFTI-Reader-JS

A JavaScript NIfTI file format reader. This reader supports both .nii and .nii.gz file types. Current TODO list.

###Usage See the tests folder for more examples.

var data = // an ArrayBuffer
var niftiHeader = null,
    niftiImage = null;

if (nifti.isCompressed(data)) {
    data = nifti.decompress(data);
}

if (nifti.isNIFTI1(data)) {
    niftiHeader = nifti.readHeader(data);
    niftiImage = nifti.readerImage(niftiHeader, data);
}

###Install Get a packaged source file:

Or install via NPM:

npm install nifti-reader-js

Or install via Bower:

bower install nifti-reader-js

###Testing

npm test

###Building See the release folder for the latest builds or build it yourself using:

npm run build

This will output nifti-reader.js and nifti-reader-min.js to build/.

Acknowledgments

NIFTI-Reader-JS makes use of the following third-party libraries:

  • pako — for GZIP inflating

Keywords

FAQs

Package last updated on 05 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc