{"_id":"ndb-node-pty-prebuilt","_rev":"2801883","name":"ndb-node-pty-prebuilt","description":"Fork node-pty","dist-tags":{"latest":"0.8.0"},"maintainers":[{"name":"ak239","email":"ak239spb@gmail.com"}],"time":{"modified":"2022-08-05T03:13:58.000Z","created":"2018-07-24T01:40:37.484Z","0.8.0":"2018-07-24T06:36:01.412Z","0.7.7":"2018-07-24T03:26:48.055Z","0.7.6":"2018-07-24T01:40:37.484Z"},"users":{},"author":{"name":"Aleksey Kozyatinskiy"},"repository":{"type":"git","url":"git+https://github.com/ak239/ndb-node-pty.git"},"versions":{"0.8.0":{"name":"ndb-node-pty-prebuilt","description":"Fork node-pty","author":{"name":"Aleksey Kozyatinskiy"},"version":"0.8.0","license":"MIT","main":"./lib/index.js","types":"./typings/node-pty.d.ts","repository":{"type":"git","url":"git+https://github.com/ak239/ndb-node-pty.git"},"engines":{"node":">=8.0.0"},"files":["binding.gyp","lib/","scripts/","src/","deps/","typings/","bin/"],"homepage":"https://github.com/ak239/ndb-node-pty#readme","keywords":["pty","tty","terminal","pseudoterminal","forkpty","openpty"],"scripts":{"tsc":"tsc","lint":"tslint 'src/**/*.ts'","install":"node scripts/install.js","postinstall":"node scripts/post-install.js","test":"cross-env NODE_ENV=test mocha -R spec --exit lib/*.test.js","prepublish":"npm run tsc"},"dependencies":{"decompress":"^4.2.0","decompress-targz":"^4.1.1","nan":"2.10.0"},"devDependencies":{"@types/mocha":"^5.0.0","@types/node":"^6.0.104","cross-env":"^5.1.4","mocha":"^5.0.5","pollUntil":"^1.0.3","tslint":"^5.9.1","tslint-consistent-codestyle":"^1.13.0","typescript":"^2.8.1"},"gitHead":"1f26be0a1eb53217ebc6a070970f5fddba31a35c","bugs":{"url":"https://github.com/ak239/ndb-node-pty/issues"},"_id":"ndb-node-pty-prebuilt@0.8.0","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"ak239","email":"ak239spb@gmail.com"},"dist":{"shasum":"dbe8df675d94cd28697e399925137cc71c089bee","size":2500189,"noattachment":false,"key":"/ndb-node-pty-prebuilt/-/ndb-node-pty-prebuilt-0.8.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndb-node-pty-prebuilt/download/ndb-node-pty-prebuilt-0.8.0.tgz"},"maintainers":[{"name":"ak239","email":"ak239spb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ndb-node-pty-prebuilt_0.8.0_1532414161129_0.20556330290393277"},"_hasShrinkwrap":false,"deprecated":"This pkg is retired, please use node-pty instead","_cnpmcore_publish_time":"2021-12-24T03:22:26.612Z","hasInstallScript":true,"publish_time":1532414161412,"_cnpm_publish_time":1532414161412},"0.7.7":{"name":"ndb-node-pty-prebuilt","description":"Fork node-pty","author":{"name":"Aleksey Kozyatinskiy"},"version":"0.7.7","license":"MIT","main":"./lib/index.js","types":"./typings/node-pty.d.ts","repository":{"type":"git","url":"git+https://github.com/ak239/ndb-node-pty.git"},"engines":{"node":">=8.0.0"},"files":["binding.gyp","lib/","scripts/","src/","deps/","typings/","bin/"],"homepage":"https://github.com/ak239/ndb-node-pty#readme","keywords":["pty","tty","terminal","pseudoterminal","forkpty","openpty"],"scripts":{"tsc":"tsc","lint":"tslint 'src/**/*.ts'","install":"node scripts/install.js","postinstall":"node scripts/post-install.js","test":"cross-env NODE_ENV=test mocha -R spec --exit lib/*.test.js","prepublish":"npm run tsc"},"dependencies":{"decompress":"^4.2.0","decompress-targz":"^4.1.1","nan":"2.10.0"},"devDependencies":{"@types/mocha":"^5.0.0","@types/node":"^6.0.104","cross-env":"^5.1.4","mocha":"^5.0.5","pollUntil":"^1.0.3","tslint":"^5.9.1","tslint-consistent-codestyle":"^1.13.0","typescript":"^2.8.1"},"gitHead":"a5f03811b1d89d0726292aa7e38d6094414acb3c","bugs":{"url":"https://github.com/ak239/ndb-node-pty/issues"},"_id":"ndb-node-pty-prebuilt@0.7.7","_npmVersion":"6.2.0","_nodeVersion":"10.7.0","_npmUser":{"name":"ak239","email":"ak239spb@gmail.com"},"dist":{"shasum":"a575748fab4965098e421c5db0feedf9f3adf095","size":1083078,"noattachment":false,"key":"/ndb-node-pty-prebuilt/-/ndb-node-pty-prebuilt-0.7.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndb-node-pty-prebuilt/download/ndb-node-pty-prebuilt-0.7.7.tgz"},"maintainers":[{"name":"ak239","email":"ak239spb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ndb-node-pty-prebuilt_0.7.7_1532402807895_0.21684003784279415"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T03:22:26.400Z","hasInstallScript":true,"publish_time":1532402808055,"_cnpm_publish_time":1532402808055},"0.7.6":{"name":"ndb-node-pty-prebuilt","description":"Fork node-pty","author":{"name":"Aleksey Kozyatinskiy"},"version":"0.7.6","license":"MIT","main":"./lib/index.js","types":"./typings/node-pty.d.ts","repository":{"type":"git","url":"git+https://github.com/ak239/ndb-node-pty.git"},"engines":{"node":">=8.0.0"},"files":["binding.gyp","lib/","scripts/","src/","deps/","typings/","bin/"],"homepage":"https://github.com/ak239/ndb-node-pty#readme","keywords":["pty","tty","terminal","pseudoterminal","forkpty","openpty"],"scripts":{"tsc":"tsc","lint":"tslint 'src/**/*.ts'","install":"node scripts/install.js","postinstall":"node scripts/post-install.js","test":"cross-env NODE_ENV=test mocha -R spec --exit lib/*.test.js","prepublish":"npm run tsc"},"dependencies":{"decompress":"^4.2.0","decompress-targz":"^4.1.1","nan":"2.10.0"},"devDependencies":{"@types/mocha":"^5.0.0","@types/node":"^6.0.104","cross-env":"^5.1.4","mocha":"^5.0.5","pollUntil":"^1.0.3","tslint":"^5.9.1","tslint-consistent-codestyle":"^1.13.0","typescript":"^2.8.1"},"gitHead":"34bc4fe83143ebccee29fc089ba9443b3b83e9a5","bugs":{"url":"https://github.com/ak239/ndb-node-pty/issues"},"_id":"ndb-node-pty-prebuilt@0.7.6","_npmVersion":"6.1.0","_nodeVersion":"10.7.0","_npmUser":{"name":"ak239","email":"ak239spb@gmail.com"},"dist":{"shasum":"7a7786d2d83e28c3097e223dd4c60d7e3f142c58","size":1083102,"noattachment":false,"key":"/ndb-node-pty-prebuilt/-/ndb-node-pty-prebuilt-0.7.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndb-node-pty-prebuilt/download/ndb-node-pty-prebuilt-0.7.6.tgz"},"maintainers":[{"name":"ak239","email":"ak239spb@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ndb-node-pty-prebuilt_0.7.6_1532396437357_0.5409152112302393"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T03:22:24.531Z","hasInstallScript":true,"publish_time":1532396437484,"_cnpm_publish_time":1532396437484}},"readme":"# ndb-node-pty\n\nNote: this repository is [node-pty](https://github.com/Microsoft/node-pty) fork with two changes:\n- prebuilt binaries for Node 8, Node 9 and Node 10 are shipped as part of package,\n- install script first try to lookup prebuilt binary before building.\n\n`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.\n\nThis is useful for:\n\n- Writing a terminal emulator (eg. via [xterm.js](https://github.com/sourcelair/xterm.js)).\n- Getting certain programs to *think* you're a terminal, such as when you need a program to send you control sequences.\n\n`node-pty` supports Linux, macOS and Windows. Windows support is possible by utilizing the [winpty](https://github.com/rprichard/winpty) library.\n\n## Real-world Uses\n\n`node-pty` powers many different terminal emulators, including:\n\n- [Microsoft Visual Studio Code](https://code.visualstudio.com)\n- [Hyper](https://hyper.is/)\n- [Upterm](https://github.com/railsware/upterm)\n- [Script Runner](https://github.com/ioquatix/script-runner) for Atom.\n- [Theia](https://github.com/theia-ide/theia)\n- [FreeMAN](https://github.com/matthew-matvei/freeman) file manager\n- [atom-xterm](https://atom.io/packages/atom-xterm) - Atom plugin for providing terminals inside your Atom workspace.\n\nDo you use node-pty in your application as well? Please open a [Pull Request](https://github.com/Tyriar/node-pty/pulls) to include it here. We would love to have it in our list.\n\n## Example Usage\n\n```js\nvar os = require('os');\nvar pty = require('node-pty');\n\nvar shell = os.platform() === 'win32' ? 'powershell.exe' : 'bash';\n\nvar ptyProcess = pty.spawn(shell, [], {\n  name: 'xterm-color',\n  cols: 80,\n  rows: 30,\n  cwd: process.env.HOME,\n  env: process.env\n});\n\nptyProcess.on('data', function(data) {\n  console.log(data);\n});\n\nptyProcess.write('ls\\r');\nptyProcess.resize(100, 40);\nptyProcess.write('ls\\r');\n```\n\n## Building\n\n```bash\n# Install dependencies and build C++\nnpm install\n# Compile TypeScript -> JavaScript\nnpm run tsc\n```\n\n### Dependencies on Windows\n\n`npm install` requires some tools to be present in the system like Python and C++ compiler. Windows users can easily install them by running the following command in PowerShell as administrator. For more information see https://github.com/felixrieseberg/windows-build-tools:\n\n```sh\nnpm install --global --production windows-build-tools\n```\n\n## Debugging\n\nOn 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.\n\n## Troubleshooting\n\n**Powershell gives error 8009001d**\n\n> Internal Windows PowerShell error.  Loading managed Windows PowerShell failed with error 8009001d.\n\nThis happens when PowerShell is launched with no `SystemRoot` environment variable present.\n\n## pty.js\n\nThis 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.\n\n## License\n\nCopyright (c) 2012-2015, Christopher Jeffrey (MIT License).\nCopyright (c) 2016, Daniel Imms (MIT License).\n","_attachments":{},"homepage":"https://github.com/ak239/ndb-node-pty#readme","bugs":{"url":"https://github.com/ak239/ndb-node-pty/issues"},"license":"MIT"}