How to Install subdir NPM Packages on Ubuntu / Debian

How to Install subdir software package in NPM Packages

subdir : return whether a path is a sub-path. You can installing subdir npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install subdir
$ sudo npm install -g subdir

If want to update the subdir package execute the command as below,

$ sudo npm update subdir

Update package globally,

$ npm install -g subdir

Git clone:

$ sudo  git clone https://github.com/rektide/subdir.git
$ sudo  npm install -g ./subdir

subdir@0.0.3 /usr/lib/node_modules/subdir

How to remove subdir package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall subdir

Basic Information of subdir NPM Package:

Package Name subdir
Version 0.0.3
Description return whether a path is a sub-path
Released Date 2013-07-10T12:51:37.952Z
Published by substack
How to Learn https://www.npmjs.com/package/subdir/tutorial