Skip to content

V-tech-tools/__console.utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

__console.utility

🌀 v_con :: v__console.utility

[.v.] Node Module that only requires a single function call to execute some bash/shell code in a child_process

⏩ How To Install:

Add this repo git URL into dependencies in your projects package.json.

...
"dependencies": {
	"v__console.utility":"https://github.com/V-tech-tools/__console.utility"  
}, 
...

💥 How to use:

Well just load it as a constant...and have fun...

const [v_con] = require( 'v__console.utility' );

// Simple listing
v_con.log( "message to print" );

v_con.logI( "Some adaasdd das as git status" );
v_con.logInfo( "Some adaasdd das as git status" );

v_con.logW( "Some adaasdd das as git status" );
v_con.logWarn( "Some adaasdd das as git status" );

v_con.logE( "Some adaasdd das as git status" );
v_con.logError( "Some adaasdd das as git status" );

Functions as alternative...

Or look at the test.js file for more info how to use these functions...

const [cs, clearConsole, log, logInfo, logWarn, logError ] = require ('./v__console.utility');

// Clear Console
clearConsole();
cs();  //<- Function Alias [note: will call the original]

// console.log()
log();

// Will use the console.info() 
logInfo();
logI();  //<- Function Alias [note: will call the original]
  
// Warning ...
logWarn();
logW();  //<- Function Alias [note: will call the original]
  
// Console Error  
logError();
logE();  //<- Function Alias [note: will call the original]

...

👻 Author: -<[_.⟁._]>-

⏰ CreatedTime: 05.09.2021 @ 18:51

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published