![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
nifti-reader-js
Advanced tools
Readme
A JavaScript NIfTI file format reader. This reader supports both NIfTI-1 and NIfT1-2 file formats, both compressed (.nii.gz) and uncompressed (.nii).
API, drawing to canvas example and more
Using in a HTML script
tag to emulate older behaviour prior to the esbuild changes in v0.6.4
:
<script type="module">
import * as nifti from './nifti-reader.js';
window.nifti = nifti.default;
console.log(nifti);
</script>
var data = // an ArrayBuffer
var niftiHeader = null,
niftiImage = null,
niftiExt = null;
if (nifti.isCompressed(data)) {
data = nifti.decompress(data);
}
if (nifti.isNIFTI(data)) {
niftiHeader = nifti.readHeader(data);
console.log(niftiHeader.toFormattedString());
niftiImage = nifti.readImage(niftiHeader, data);
if (nifti.hasExtension(niftiHeader)) {
niftiExt = nifti.readExtensionData(niftiHeader, data);
}
}
Get a packaged source file:
Or install via NPM:
npm install nifti-reader-js
Or install via Bower:
bower install nifti-reader-js
npm test
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/.
NIFTI-Reader-JS makes use of the following third-party libraries:
FAQs
A JavaScript NIfTI file format reader.
The npm package nifti-reader-js receives a total of 3,056 weekly downloads. As such, nifti-reader-js popularity was classified as popular.
We found that nifti-reader-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.