npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bruker-data-test

v1.0.0

Published

Provides bruker NMR data files for testing purposes

Downloads

491

Readme

bruker-data-test

NPM version build status Test coverage npm download

Installation

$ npm i bruker-data-test

Provide zipped and coffee DataTestApi instance (from data-test-api package).

See https://github.com/cheminfo/data-test-api

Usage

import { zipped } from 'bruker-data-test';

const files = await zipped.files(); // list of zip file names

const name = 'aspirin-1h.zip';
const aspirin = zipped.find((entry) => entry.name === name);
//or
const aspirin = await zipped.findFile(name); // get a file by name

// Get the file buffer
const buffer = await aspirin.buffer();
// or
const buffer = await zipped.findData(name);

// get the file as a Stream
const stream = aspirin.stream();

// get buffer for cyclosporin_1h.zip
const cyclosporin1hBuffer = await zipped.getData(
  'cyclosporin/cyclosporin_1h.zip',
);

Get the root path of uncompressed bruker experiments files

import { coffee } from 'bruker-data-test';
import { FileCollection } from 'file-collection';

const cofeeRoot = coffee.root;
const fileCollection = await FileCollection.fromPath(cofeeRoot);

Data Files Structure

% tree data/zipped -L 2 data/flat/coffee
data/zipped
├── aspirin-1h-processed.zip
├── aspirin-1h.zip
├── cyclosporin
│   ├── cyclosporin_1h.zip
│   ├── cyclosporin_cosy.zip
│   ├── cyclosporin_hmbc.zip
│   ├── cyclosporin_hsqc.zip
│   └── inversionRecovery2D.zip
├── naphtoicAcid-1h.zip
├── nonUniformSampling
│   ├── cosy-nus.zip
│   └── hsqc-nus.zip
├── strychnine-1h.zip
└── t1rho-1H.zip
data/flat/coffee
├── UV1009_M1-1003-1002_6268712_73uEjPg4XR
│   ├── 10
│   ├── 20
│   ├── 21
│   ├── 22
│   ├── 23
│   ├── 98888
│   └── 99999
└── UV1010_M1-1003-1002_6268756_ErISKLIoeB
    ├── 10
    ├── 11
    ├── 12
    ├── 13
    ├── 98888
    └── 99999

NB: Each of subfolders in data/flat/coffee includes a pdata folder, acqu and acqus files. And can include other files like fid, audita.txt, etc.

License

MIT