# @sass-collective/strip-unit

> Strip unit on CSS value.

Latest version **3.1.2** (published 2022-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sass-collective/strip-unit
pnpm add @sass-collective/strip-unit
yarn add @sass-collective/strip-unit
bun add @sass-collective/strip-unit
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.2 |
| Published | 2022-01-03 |
| First published | 2020-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 1 |
| Unpacked size | 5.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | The Sass Collective Authors |
| Maintainers | bdamevin |
| Keywords | sass, strip, unit, css, front-end |

## Links

- npm: https://www.npmjs.com/package/@sass-collective/strip-unit
- Repository: https://github.com/sass-collective/sass-collective
- Homepage: https://github.com/sass-collective/sass-collective/tree/master/packages/strip-unit
- Issues: https://github.com/sass-collective/sass-collective/issues
- npm.io page: https://npm.io/package/@sass-collective/strip-unit

## Dependencies (1)

- [sass](https://npm.io/package/sass.md) ^1.45.2

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 3.1.2 (latest) — 2022-01-03
- 1.2.1-alpha.48 (canary) — 2020-07-22
- 3.1.1 — 2021-12-10
- 3.1.0 — 2021-08-19
- 3.0.0 — 2021-07-01
- 2.2.0 — 2021-05-28
- 2.1.0 — 2021-04-11
- 2.0.2 — 2021-03-30
- 2.0.1 — 2021-03-29
- 2.0.0 — 2021-01-11
- 1.2.0 — 2020-07-22
- 1.1.1 — 2020-06-24
- 1.1.0 — 2020-06-17
- 1.0.1 — 2020-04-12
- 1.0.0 — 2020-04-12

## README

<div align="center">

![Sass Strip Unit](.github/logo.svg)

</div>

[![Version](https://flat.badgen.net/npm/v/@sass-collective/strip-unit)](https://www.npmjs.com/package/@sass-collective/strip-unit)
[![Downloads](https://flat.badgen.net/npm/dt/@sass-collective/strip-unit)](https://www.npmjs.com/package/@sass-collective/strip-unit)
[![License](https://flat.badgen.net/github/license/sass-collective/sass-collective)](https://flat.badgen.net/github/license/sass-collective/sass-collective)

## Introduction

Strip unit on CSS value.

## Installing

```shell
npm install @sass-collective/strip-unit
```

## Usage

```scss
@use "@sass-collective/strip-unit";
```

## API

### Sass functions

| Function        | Description                    |
|-----------------|--------------------------------|
| `strip($value)` | Return value without the unit. |

#### Strip unit value with `strip-unit.strip()`

The following Sass will produce:

```scss
@use "@sass-collective/strip-unit";

$value: strip-unit.strip(100px);
// 100
```

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