Socket
Socket
Sign inDemoInstall

coffee-unused

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffee-unused

Find unused variables and imports in CoffeeScript files


Version published
Weekly downloads
4
decreased by-60%
Maintainers
5
Weekly downloads
 
Created
Source

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.

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

Install

npm install coffee-unused

Usage

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

FAQs

Package last updated on 01 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc