# coffee-unused

> Find unused variables and imports in CoffeeScript files

Latest version **0.2.1** (published 2017-02-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install coffee-unused
pnpm add coffee-unused
yarn add coffee-unused
bun add coffee-unused
```

Provides the command `coffee-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.2.1 |
| Published | 2017-02-01 |
| First published | 2016-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Hakan Karadis |
| Maintainers | cihangir, hakankaradis, koding, sinan, usirin |

## Links

- npm: https://www.npmjs.com/package/coffee-unused
- Repository: https://github.com/koding/coffee-unused
- Homepage: https://github.com/koding/coffee-unused#readme
- Issues: https://github.com/koding/coffee-unused/issues
- npm.io page: https://npm.io/package/coffee-unused

## Dependencies (8)

- [walk](https://npm.io/package/walk.md) 2.3.9
- [async](https://npm.io/package/async.md) 2.1.4
- [esprima](https://npm.io/package/esprima.md) 3.1.3
- [jasmine-node](https://npm.io/package/jasmine-node.md) 1.14.5
- [coffee-script](https://npm.io/package/coffee-script.md) 1.12.2
- [command-line-args](https://npm.io/package/command-line-args.md) 2.1.6
- [decaffeinate-parser](https://npm.io/package/decaffeinate-parser.md) 12.0.0
- [coffee-react-transform](https://npm.io/package/coffee-react-transform.md) 3.3.0

## Recent versions

- 0.2.1 (latest) — 2017-02-01
- 0.2.0 — 2016-03-15
- 0.1.0 — 2016-03-11

## README

# coffee-unused

This module helps you identify unused variables in your coffescript project.
It finds all unused variables under a given directory and returns an array of objects
specifying the name of the variable, its path and line number.

```js
  [[
    {
      name: 'fs'
      path: 'directory_path/vars/var1.coffee:1'
      lineNumber: 1
    }
    {
      name: 'options'
      path: 'directory_path/vars/var1.coffee:3'
      lineNumber: 3
    }
  ]]
```

## Install

```sh
npm install coffee-unused
```

## Usage

```sh
node ./node_modules/coffee-unused/index.js --src <path to walk>  [-s|--skip-parse-error]
```

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