New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@carisls/xmlreport-reader

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@carisls/xmlreport-reader

Component for reading of Caris XML Reports

latest
npmnpm
Version
0.9.3
Version published
Maintainers
2
Created
Source

XML Report Reader

NPM Version NPM Downloads Install Size

The purpose of this component is reading of standard XML documents with genomics data created by Caris Life Sciences.

It can be used from inside Node.js application API or as an executable CLI.

Installation

npm i @carisls/xmlreport-reader

If you want to use it globally (not only inside application folder) you can install it with -g flag.

npm i -g @carisls/xmlreport-reader

API Usage

const xmlReader = require('@carisls/xmlreport-reader');

const { promises: fs } = require('fs');

(async() => {
  // Get XML file contents
  const fileContents = await fs.readFile('./myfile.xml', 'utf8');

  // Parse XML into Report
  const report = xmlReader(fileContents);

  // Prettify report JSON
  const reportString = JSON.stringify(report, null, 2);

  // Write to console
  console.log(reportString);

})()
  .catch((err) => {
    console.error(err);
  });

CLI Usage

This component can be run as a CLI, too (outside an application).

xmlreport file.xml

If you want to print its output into some file, you can execute

xmlreport file.xml > output.json

Supported elements

Only few elements are currently supported for extraction:

  • Cancer-Relevant Biomarkers
  • Genomic Signatures
  • Immunohistochemistry (IHC)
  • Human Leukocyte Antigen (HLA)
  • Available Clinical Trials
  • References (supporting treatments)

Keywords

xml

FAQs

Package last updated on 12 Apr 2024

Did you know?

Socket

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.

Install

Related posts