Skip to content

brunoalvesdefaria/dicom-parser

Repository files navigation

dicom-parser

Join the chat at https://gitter.im/OHIF

NPM version NPM downloads MIT License Build Status Coverage Status

A lightweight JavaScript library for parsing DICOM P10 byte streams. This project is based on the dicomParser library.

Documentation

Port to ECMAScript 6 (version 2.0.0)

dicom-parser 2.0.0 does not bring any new features, but the code is now written in ECMAScript 6 modules. Temporary build (ECMAScript 5) files are placed under build/umd/ (for running tests during development).

If you want to use a particular revision of the code, make sure to run grunt transpile update-index, so dicom-parser.js are synced with src/*. We might place that in a commit hook in the future.

Upgrading to 2.0.0

All objects thrown now comply to the standard Error object interface. This impacts the following APIs:

  • parseDA

We're looking for co-maintainers! If you want to become a master of time please write to chafey.

License

dicom-parser.js is freely distributable under the terms of the MIT license.

TODO

  • Get Code coverage to 100%
  • Figure out how to run coveralls locally
  • Add automated tests for the different modularization strategies/consuming environments (e.g. meteor, Angular 1, Angular 2, ES6, etc)
  • Add automated tests for various browsers. There is some config in there for saucelabs but I didn't try to get it working
  • Get nuget working. There is some config in there for this but I didn't try to get it working
  • Figure out why source comments are not being removed form the minified file.
    Setting preserveComments to false instead of 'some' fixes this bug removes the version header.
    Note that I get the same weird results when building moment.js so it may be a bug in uglify?
  • Figure out strategy for live examples. rawgithib is not 100% reliable so it would be nice to figure out another solution
  • Figure out strategy for documentation. Just use markdown or go HTML documentation like moment.js does?

About

JavaScript parser for DICOM Part 10 data

Resources

License

Stars

Watchers

Forks

Packages

No packages published