{"id":16863086,"url":"https://github.com/leesei/openslide-prop2json","last_synced_at":"2026-05-22T05:13:07.510Z","repository":{"id":57315503,"uuid":"47166675","full_name":"leesei/openslide-prop2json","owner":"leesei","description":"Parse OpenSlide properties (generated by `openslide-show-properties`) to JSON","archived":false,"fork":false,"pushed_at":"2018-09-27T05:28:50.000Z","size":64,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T03:51:22.007Z","etag":null,"topics":["json","openslide"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leesei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-01T05:00:45.000Z","updated_at":"2025-02-13T00:23:52.000Z","dependencies_parsed_at":"2022-09-18T20:52:45.853Z","dependency_job_id":null,"html_url":"https://github.com/leesei/openslide-prop2json","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leesei%2Fopenslide-prop2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leesei%2Fopenslide-prop2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leesei%2Fopenslide-prop2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leesei%2Fopenslide-prop2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leesei","download_url":"https://codeload.github.com/leesei/openslide-prop2json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244257277,"owners_count":20424129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","openslide"],"created_at":"2024-10-13T14:37:40.480Z","updated_at":"2026-05-22T05:13:02.491Z","avatar_url":"https://github.com/leesei.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openslide-prop2json\n\n[![NPM Version][npm-image]][npm-url]\n[![Linux Build][travis-image]][travis-url]\n[![Windows Build][appveyor-image]][appveyor-url]\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) \n\n[npm-image]: https://img.shields.io/npm/v/openslide-prop2json.svg\n[npm-url]: https://npmjs.org/package/openslide-prop2json\n[travis-image]: https://img.shields.io/travis/leesei/openslide-prop2json.svg?label=linux\n[travis-url]: https://travis-ci.org/leesei/openslide-prop2json\n[appveyor-image]: https://img.shields.io/appveyor/ci/leesei/openslide-prop2json/master.svg?label=windows\n[appveyor-url]: https://ci.appveyor.com/project/leesei/openslide-prop2json\n\nParse OpenSlide properties (generated by `openslide-show-properties`) to JSON.  \nIt will also automatically convert number and boolean fields.\n\n[List of Known Properties](http://openslide.org/docs/properties/)  \n[Virtual slide formats understood by OpenSlide](http://openslide.org/formats/)\n\n## Install\n\n```sh\nnpm install openslide-prop2json -g  # CLI\nnpm install openslide-prop2json     # as module\n```\n\n## Usage\n\n### CLI\n\n```sh\n# load properties file\nopenslide-show-properties Leica-1.scn \u003e Leica-1.prop\nopenslide-prop2json Leica-1.prop\n# OR with a pipe\nopenslide-show-properties Leica-1.scn | openslide-prop2json\n```\n\n### As Module\n\n```js\nconst prop2json = require('openslide-prop2json');\nprop2json(inputStream, options, (err, prop) =\u003e {\n  console.log(JSON.stringify(prop, null, 2));\n});\n```\n\n### Debug logs\n\nSupported DEBUG tags: *osp2j:parse*, *osp2j:transform*.  \nSee [visionmedia/debug](https://github.com/visionmedia/debug/) for details.\n\n## TODO\n\n- [`transform.js`] transform `openslide.level[]` as array\n- [`convert.js`] add blacklist for field conversion\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleesei%2Fopenslide-prop2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleesei%2Fopenslide-prop2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleesei%2Fopenslide-prop2json/lists"}