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

reopen-tty

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reopen-tty - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

6

index.js
'use strict';
const fs = require('fs');
const tty = require('tty');

@@ -7,3 +8,3 @@

if (process.platform === 'win32') {
const fs = process.binding('fs');
const cfs = process.binding('fs');

@@ -14,3 +15,3 @@ // Synchronous, but who cares?

try {
callback(null, fs.open(name, fs.constants.O_RDWR | fs.constants.O_EXCL, 0o666));
callback(null, cfs.open(name, fs.constants.O_RDWR | fs.constants.O_EXCL, 0o666));
} catch (e) {

@@ -21,3 +22,2 @@ callback(e);

} else {
const fs = require('fs');

@@ -24,0 +24,0 @@ openTTY = (kind, callback) => {

{
"name": "reopen-tty",
"version": "1.1.1",
"version": "1.1.2",
"description": "A small library to open /dev/tty in a cross-platform way",

@@ -5,0 +5,0 @@ "main": "index.js",

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