Git Product home page Git Product logo

rm-unused-node-modules's Introduction

Remove Unused NPM Modules

Want to free some space that is taken by unused projects' node_modules? Use this tool!

Usage

Run the EXE and follow the instructions, you will be asked to enter a directory, after that the tool will traverse recursively the directory and will ask you on every single project if you want to delete the node modules of it or not or not.

For convenience make sure you put the EXE inside a directory in the $PATH variable

Compile & Run

Install ps2exe Module

Install-Module ps2exe

# output:
# Untrusted repository
#  You are installing the modules from an untrusted repository. If you trust this repository, change
#  its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to
#  install the modules from 'PSGallery'?
#  [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y

Compile the powershell script

$ Invoke-ps2exe .\rm_unused_modules.ps1 .\rm_unused_modules.exe

rm-unused-node-modules's People

Contributors

yitzhakpro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.