How to Install file-type NPM Packages on Ubuntu / Debian

How to Install file-type software package in NPM Packages

file-type : Detect the file type of a Buffer/Uint8Array. You can installing file-type 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 file-type
$ sudo npm install -g file-type

If want to update the file-type package execute the command as below,

$ sudo npm update file-type

Update package globally,

$ npm install -g file-type

Git clone:

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

file-type@7.3.0 /usr/lib/node_modules/file-type

How to remove file-type package :

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

$ sudo npm uninstall file-type

Basic Information of file-type NPM Package:

Package Name file-type
Version 7.3.0
Description Detect the file type of a Buffer/Uint8Array
Released Date 2017-11-22T13:54:24.972Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/file-type/tutorial