# @orbit-tech/sass-unused

> sass-unused ===========

Latest version **0.1.0** (published 2018-03-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install @orbit-tech/sass-unused
pnpm add @orbit-tech/sass-unused
yarn add @orbit-tech/sass-unused
bun add @orbit-tech/sass-unused
```

Provides the command `sass-unused`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-03-20 |
| First published | 2018-03-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Robert Knight |
| Maintainers | adelura, davison |

## Links

- npm: https://www.npmjs.com/package/@orbit-tech/sass-unused
- Repository: https://github.com/orbit-tech/sass-unused
- Homepage: https://github.com/orbit-tech/sass-unused#readme
- Issues: https://github.com/orbit-tech/sass-unused/issues
- npm.io page: https://npm.io/package/@orbit-tech/sass-unused

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.0.5
- [gonzales-pe](https://npm.io/package/gonzales-pe.md) ^4.2.3

## Recent versions

- 0.1.0 (latest) — 2018-03-20

## README

sass-unused
===========

[![Build Status](https://travis-ci.org/orbit-tech/sass-unused.png?branch=master)](https://travis-ci.org/orbit-tech/sass-unused)

A utility for finding unused variables, mixins and functions in a collection of
SASS files, built on the
[gonzales-pe](https://github.com/tonyganch/gonzales-pe) parser.

## Usage

### Command Line

```
npm install -g @orbit-tech/sass-unused
sass-unused 'src/**/*.scss'
```

This will parse all SASS files in 'src' and print a list of identifiers of
variables, functions and mixins which are declared but not referenced
elsewhere.

### Library

```
var sassUnused = require('@orbit-tech/sass-unused')

sassUnused.findUnused('src/**/*.scss')
  .forEach(ident => console.log(ident))
```

## Caveats

This tool is quite dumb, it assumes that all variables, functions and mixins
live in the same namespace and can be identified uniquely via their
identifiers.

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