openslide-prop2json
Parse OpenSlide properties (generated by openslide-show-properties
) to JSON.
It will also automatically convert number and boolean fields.
List of Known Properties
Virtual slide formats understood by OpenSlide
Install
npm install openslide-prop2json -g # CLI npm install openslide-prop2json # as module
Usage
CLI
# load properties file openslide-show-properties Leica-1.scn > Leica-1.propopenslide-prop2json Leica-1.prop# OR with a pipe openslide-show-properties Leica-1.scn | openslide-prop2json
As Module
const prop2json = ;;
Debug logs
Supported DEBUG tags: osp2j:parse, osp2j:transform.
See visionmedia/debug for details.
TODO
- [
transform.js
] transformopenslide.level[]
as array - [
convert.js
] add blacklist for field conversion