Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More

bruker-data-test

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bruker-data-test

Provides bruker NMR data files for testing purposes


Version published
Weekly downloads
102
decreased by-28.17%
Maintainers
5
Weekly downloads
 
Created

bruker-data-test

NPM version build status Test coverage npm download

.

Installation

$ npm i bruker-data-test

Provide FileList of bruker files zipped or unzipped

Usage

import { getList, getFile, getZipped } from 'bruker-data-test';

const listOfFilenames = await getList(); //list of zip file names

const filename = 'aspirin-1h.zip';
const zipped = getZipped();
const aspirin = zipped.find((entry) => entry.name === filename);
const buffer = await aspirin.arrayBuffer();
//or
const zipBuffer = await getData(filename);

File list of a folder with two bruker samples

import { getCoffee } from 'bruker-data-test';
const fileList = await getCoffee();

License

MIT

FAQs

Package last updated on 26 Jan 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