2.0.0 • Published 7 years ago
openslide-prop2json v2.0.0
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.prop
openslide-prop2json Leica-1.prop
# OR with a pipe
openslide-show-properties Leica-1.scn | openslide-prop2json
As Module
const prop2json = require('openslide-prop2json');
prop2json(inputStream, options, (err, prop) => {
console.log(JSON.stringify(prop, null, 2));
});
Debug logs
Supported DEBUG tags: osp2j:parse, osp2j:transform.
See visionmedia/debug for details.
TODO
transform.js
transformopenslide.level[]
as arrayconvert.js
add blacklist for field conversion