Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terminal-control

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terminal-control - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "terminal-control",
"version": "0.0.3",
"version": "0.0.4",
"description": "Terminal escape codes made easy. Get in full control.",

@@ -5,0 +5,0 @@ "main": "terminal-control.js",

@@ -18,3 +18,3 @@ terminal-control

```
var term = require('terminal-control').init();
var term = require('terminal-control').init().autoClean();

@@ -30,3 +30,4 @@ term.setBold(true);

* **init([override])** - initialize and check if the programm runs in a tty (if override != true)
* **init([override])** - initialize and check if the programm runs in a tty (if override != true)
* **autoClean()** - automatically reset text style to default on process exit

@@ -33,0 +34,0 @@ ###Text style

@@ -40,2 +40,9 @@ /**

this.autoClean = function() {
var _this = this;
process.on('exit', function() {
_this.resetTextStyle();
});
return this;
}

@@ -155,5 +162,6 @@ //Text style

} else {
this.autoClean = function() {}
//Text style
this.refreshTextStyle = function() {}
this.resetTextStyle = function () { }
this.resetTextStyle = function () {}
this.setBold = function (set) {}

@@ -160,0 +168,0 @@ this.setLowIntensity = function (set) {}

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc