Coder Social home page Coder Social logo

nm-scripts's Introduction

nm-scripts

The nm-scripts was intented to solve the problem of the endless amount of time takes to delete node_moudles directory.

The idea is to create a VHD (Virtual Hard Drive) file for each node_modules directory that we want to maintain and then simply mount it in the relevant path.
When we want to clear node_modules we can simply format the mounted VHD volume which takes few seconds.

The repository contains 4 scripts and it is recommended to clone the repository and put the directory in the PATH.

nm-config

This command must be run on first use to configure the default VHDs size and the VHDs directory

nm-config -DefaultDiskSize 1GB -DisksFolder <Path>

nm-create

This command creates a VHD file and mount it to node_modules under the current directory

nm-create -Folder <Path>

  • Folder is optional and defaults to current directory

nm-clear

This command format the current mounted node_modules

nm-clear -Folder <Path>

  • Folder is optional and defaults to current directory

nm-delete

This command dismount node_modules and delete the VHD file.

nm-delete -Folder <Path>

  • Folder is optional and defaults to current directory

Notes

nm-scripts's People

Contributors

nimrodolev avatar omer-koren avatar

Watchers

James Cloos 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.