https://github.com/koding/coffee-unused
Find unused variables and imports in CoffeeScript files
https://github.com/koding/coffee-unused
Last synced: about 2 months ago
JSON representation
Find unused variables and imports in CoffeeScript files
- Host: GitHub
- URL: https://github.com/koding/coffee-unused
- Owner: koding
- License: mit
- Created: 2016-03-04T19:28:29.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-11T16:53:11.000Z (almost 9 years ago)
- Last Synced: 2024-11-03T02:33:45.604Z (about 1 year ago)
- Language: CoffeeScript
- Size: 31.3 KB
- Stars: 2
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
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 [-s|--skip-parse-error]
```