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

get-cursor-position

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-cursor-position - npm Package Compare versions

Comparing version 1.0.5 to 2.0.0

.editorconfig

12

index.js

@@ -1,6 +0,6 @@

var pos = require('./build/Release/pos');
var tty = require('tty');
var tty = require('tty');
var pos = require('bindings')('pos');
var code = '\x1b[6n';
function raw(mode) {
function setRawMode(mode) {
if (process.stdin.setRawMode) {

@@ -15,3 +15,3 @@ process.stdin.setRawMode(mode)

if (process.platform === 'win32') {
process.nextTick(function() {
process.nextTick(function () {
var position = pos.sync();

@@ -32,3 +32,3 @@

process.stdin.resume();
raw(true);
setRawMode(true);

@@ -47,3 +47,3 @@ process.stdin.once('data', function (b) {

// cleanup and close stdin
raw(false);
setRawMode(false);
process.stdin.pause();

@@ -50,0 +50,0 @@ });

{
"name": "get-cursor-position",
"version": "1.0.5",
"version": "2.0.0",
"description": "Get the cursor's current position in your terminal.",

@@ -22,2 +22,6 @@ "main": "index.js",

"license": "MIT",
"dependencies": {
"bindings": "^1.5.0",
"node-addon-api": "^5.0.0"
},
"repository": {

@@ -30,3 +34,7 @@ "type": "git",

},
"homepage": "https://github.com/bubkoo/get-cursor-position"
"homepage": "https://github.com/bubkoo/get-cursor-position",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
}
}

Sorry, the diff of this file is not supported yet

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