# baselines

> baselines provides a collection of baseline correction methods.

Latest version **1.1.11** (published 2026-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install baselines
pnpm add baselines
yarn add baselines
bun add baselines
```

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.1.11 |
| Published | 2026-07-06 |
| First published | 2021-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 18.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kevin Maik Jablonka |
| Maintainers | cheminfo-bot |

## Links

- npm: https://www.npmjs.com/package/baselines
- Repository: https://github.com/cheminfo/baselines
- Homepage: https://github.com/cheminfo/baselines#readme
- Issues: https://github.com/cheminfo/baselines/issues
- npm.io page: https://npm.io/package/baselines

## Dependencies (4)

- [ml-airpls](https://npm.io/package/ml-airpls.md) ^2.2.0
- [ml-spectra-processing](https://npm.io/package/ml-spectra-processing.md) ^14.29.2
- [ml-rolling-ball-baseline](https://npm.io/package/ml-rolling-ball-baseline.md) ^3.0.0
- [ml-baseline-correction-regression](https://npm.io/package/ml-baseline-correction-regression.md) ^2.0.2

## Recent versions

- 1.1.11 (latest) — 2026-07-06
- 1.1.10 — 2026-04-16
- 1.1.9 — 2024-05-17
- 1.1.8 — 2024-05-17
- 1.1.7 — 2024-03-07
- 1.1.6 — 2023-08-22
- 1.1.5 — 2023-03-24
- 1.1.4 — 2022-11-25
- 1.1.3 — 2022-11-25
- 1.1.1 — 2021-12-15
- 1.1.0 — 2021-09-07
- 1.0.0 — 2021-03-24
- 0.1.2 — 2021-02-09
- 0.1.1 — 2021-02-09
- 0.1.0 — 2021-02-09

## README

# baselines

[![NPM version][npm-image]][npm-url]
[![build status][ci-image]][ci-url]
[![npm download][download-image]][download-url]

Collects baseline correction methods for JavaScript.
The idea is that all methods can be used by just providing the measurements y as input.

## Installation

`$ npm i baselines`

## Usage

```js
import {
  airPLSBaseline,
  iterativePolynomialBaseline,
  rollingBallBaseline,
} from 'baselines';

const baselineOutput = rollingBallBaseline(spectrum);

// {baseline: [], correctedSpectrum: []}
```

## [API Documentation](https://cheminfo.github.io/baselines/)

## License

[MIT](./LICENSE)

[npm-image]: https://img.shields.io/npm/v/baselines.svg
[npm-url]: https://www.npmjs.com/package/baselines
[ci-image]: https://github.com/cheminfo/baselines/workflows/Node.js%20CI/badge.svg?branch=main
[ci-url]: https://github.com/cheminfo/baselines/actions?query=workflow%3A%22Node.js+CI%22
[download-image]: https://img.shields.io/npm/dm/baselines.svg
[download-url]: https://www.npmjs.com/package/baselines

---
_Source: https://npm.io/package/baselines · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
