nuclide-prebuilt-libs
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -9,6 +9,18 @@ 'use strict'; | ||
// ABI v49 is only for Electron. https://github.com/electron/electron/issues/5851 | ||
var nodeAbi = process.versions.modules === '49' | ||
? 'electron-v1.3' | ||
: 'node-v' + process.versions.modules; | ||
// ABI versions 49, 50, 53 are only for Electron. | ||
// https://github.com/electron/electron/issues/5851 | ||
var nodeAbi; | ||
switch (process.versions.modules) { | ||
case '49': | ||
nodeAbi = 'electron-v1.3'; | ||
break; | ||
case '50': | ||
nodeAbi = 'electron-v1.4'; | ||
break; | ||
case '53': | ||
nodeAbi = 'electron-v1.6'; | ||
break; | ||
default: | ||
nodeAbi = 'node-v' + process.versions.modules; | ||
} | ||
@@ -15,0 +27,0 @@ var modulePath = pack.binary.module_path |
{ | ||
"name": "fuzzy-native", | ||
"version": "0.6.4", | ||
"version": "0.6.5", | ||
"description": "Native C++ implementation of a fuzzy string matcher.", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
{ | ||
"name": "nuclide-prebuilt-libs", | ||
"description": "Nuclide's binary dependencies prebuilt for various platforms", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"keywords": [], | ||
@@ -6,0 +6,0 @@ "homepage": "https://nuclide.io/", |
{ | ||
"name": "pty", | ||
"description": "Prebuilt fork of Christopher Jeffrey's pty.js v0.3.1", | ||
"version": "0.0.1", | ||
"description": "Fork of Daniel Imms's fork of Christopher Jeffrey's pseudoterminals in Node.JS", | ||
"version": "0.0.2", | ||
"license": "MIT", | ||
"main": "./index.js", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"tsc": "tsc", | ||
"tslint": "tslint src/**/*.ts", | ||
"preinstall": "node -e 'process.exit(0)'", | ||
"test": "NODE_ENV=test mocha -R spec", | ||
"build": "node-pre-gyp configure build", | ||
"rebuild": "node-pre-gyp rebuild" | ||
"rebuild": "node-pre-gyp rebuild", | ||
"test": "cross-env NODE_ENV=test mocha -R spec test" | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.17.1", | ||
"nan": "^2.0.0", | ||
"node-pre-gyp": "^0.6.34" | ||
"@types/node": "^6.0.58", | ||
"cross-env": "^3.1.3", | ||
"mocha": "^3.1.2", | ||
"nan": "^2.5.0", | ||
"node-pre-gyp": "^0.6.34", | ||
"tslint": "^4.3.1", | ||
"typescript": "^2.1.4" | ||
}, | ||
@@ -19,0 +26,0 @@ "binary": { |
# pty | ||
Fork of [pty.js](https://github.com/chjj/pty.js) prebuilt for Mac and Linux. | ||
Fork of [node-pty](https://github.com/Tyriar/node-pty) prebuilt for Nuclide on Mac and Linux. | ||
## About | ||
`pty` includes prebuilt binaries of [pty.js](https://github.com/chjj/pty.js) for Mac and Linux for major versions of node.js and electron. It is meant for use in [Atom packages](https://atom.io/packages) where your end-user might not have a proper build toolchain. | ||
`pty` includes prebuilt binaries of [node-pty](https://github.com/Tyriar/node-pty) for Mac and Linux for major versions of node.js and electron. It is meant for use in [Atom packages](https://atom.io/packages) where the end-user might not have a proper build toolchain. | ||
@@ -12,18 +12,20 @@ This module is not meant to be built by the end-user and does not include the necessary files to do so. | ||
This module implements | ||
`forkpty(3)` bindings for node.js. This allows you to fork processes with pseudo | ||
terminal file descriptors. It returns a terminal object which allows reads | ||
and writes. | ||
`forkpty(3)` bindings for node.js. This allows you to fork processes with pseudoterminal file descriptors. It returns a terminal object which allows reads and writes. | ||
This is useful for: | ||
- Writing a terminal emulator. | ||
- Getting certain programs to *think* you're a terminal. This is useful if | ||
you need a program to send you control sequences. | ||
- Writing a terminal emulator (eg. via [xterm.js](https://github.com/sourcelair/xterm.js)). | ||
- Getting certain programs to *think* you're a terminal, such as when you need a program to send you control sequences. | ||
`node-pty` supports Linux, macOS and Windows. Windows support is possible by utilizing the [winpty](https://github.com/rprichard/winpty) library. | ||
## Example Usage | ||
``` js | ||
```js | ||
var os = require('os'); | ||
var pty = require('nuclide-prebuilt-libs/pty'); | ||
var term = pty.spawn('bash', [], { | ||
var shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash'; | ||
var ptyProcess = pty.spawn(shell, [], { | ||
name: 'xterm-color', | ||
@@ -36,28 +38,39 @@ cols: 80, | ||
term.on('data', function(data) { | ||
ptyProcess.on('data', function(data) { | ||
console.log(data); | ||
}); | ||
term.write('ls\r'); | ||
term.resize(100, 40); | ||
term.write('ls /\r'); | ||
ptyProcess.write('ls\r'); | ||
ptyProcess.resize(100, 40); | ||
ptyProcess.write('ls\r'); | ||
``` | ||
console.log(term.process); | ||
## Building | ||
```bash | ||
# Install dependencies and build C++ | ||
npm install | ||
# Compile TypeScript -> JavaScript | ||
npm run tsc | ||
``` | ||
## Todo | ||
## Debugging | ||
- Add tcsetattr(3), tcgetattr(3). | ||
- Add a way of determining the current foreground job for platforms other | ||
than Linux and OSX/Darwin. | ||
On Windows, you can show the winpty agent console window by adding the environment variable `WINPTY_SHOW_CONSOLE=1` to the pty's environment. See https://github.com/rprichard/winpty#debugging-winpty for more information. | ||
## Contribution and License Agreement | ||
## Troubleshooting | ||
If you contribute code to this project, you are implicitly allowing your code | ||
to be distributed under the MIT license. You are also implicitly verifying that | ||
all code is your original work. `</legalese>` | ||
**Powershell gives error 8009001d** | ||
> Internal Windows PowerShell error. Loading managed Windows PowerShell failed with error 8009001d. | ||
This happens when PowerShell is launched with no `SystemRoot` environment variable present. | ||
## pty.js | ||
This project is forked from [chjj/pty.js](https://github.com/chjj/pty.js) with the primary goals being to provide better support for later Node.JS versions and Windows. | ||
## License | ||
Copyright (c) 2012-2015, Christopher Jeffrey (MIT License). | ||
Copyright (c) 2017, Michael Marucheck (MIT License). | ||
Copyright (c) 2012-2015, Christopher Jeffrey (MIT License).<br> | ||
Copyright (c) 2016, Daniel Imms (MIT License). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 17 instances in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
9788508
78
840
10
11