How to Install has-ansi NPM Packages on Ubuntu / Debian

How to Install has-ansi software package in NPM Packages

has-ansi : Check if a string has ANSI escape codes. You can installing has-ansi 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 has-ansi
$ sudo npm install -g has-ansi

If want to update the has-ansi package execute the command as below,

$ sudo npm update has-ansi

Update package globally,

$ npm install -g has-ansi

Git clone:

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

has-ansi@3.0.0 /usr/lib/node_modules/has-ansi

How to remove has-ansi package :

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

$ sudo npm uninstall has-ansi

Basic Information of has-ansi NPM Package:

Package Name has-ansi
Version 3.0.0
Description Check if a string has ANSI escape codes
Released Date 2017-06-20T19:33:02.569Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/has-ansi/tutorial