├── .github └── FUNDING.yml ├── LICENSE ├── index.js ├── package.json ├── readme.markdown └── security.md /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: npm/tty-browserify 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 7 | the Software, and to permit persons to whom the Software is furnished to do so, 8 | subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 15 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 16 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 17 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | exports.isatty = function () { return false; }; 2 | 3 | function ReadStream() { 4 | throw new Error('tty.ReadStream is not implemented'); 5 | } 6 | exports.ReadStream = ReadStream; 7 | 8 | function WriteStream() { 9 | throw new Error('tty.WriteStream is not implemented'); 10 | } 11 | exports.WriteStream = WriteStream; 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "tty-browserify", 3 | "version": "0.0.1", 4 | "description": "the tty module from node core for browsers", 5 | "main": "index.js", 6 | "dependencies": {}, 7 | "devDependencies": { 8 | "tape": "~1.0.4" 9 | }, 10 | "scripts": { 11 | "test": "tape test/*.js" 12 | }, 13 | "repository": { 14 | "type": "git", 15 | "url": "git://github.com/browserify/tty-browserify.git" 16 | }, 17 | "homepage": "https://github.com/browserify/tty-browserify", 18 | "keywords": [ 19 | "tty", 20 | "browser", 21 | "browserify" 22 | ], 23 | "author": { 24 | "name": "James Halliday", 25 | "email": "mail@substack.net", 26 | "url": "http://substack.net" 27 | }, 28 | "license": "MIT" 29 | } 30 | -------------------------------------------------------------------------------- /readme.markdown: -------------------------------------------------------------------------------- 1 | # tty-browserify 2 | 3 | Browser stubs for the Node.js `require('tty')` module. 4 | 5 | Browserify uses this module when you do `require('tty')` in a bundle. You should normally not use it directly. 6 | 7 | ## API 8 | 9 | ### `tty.isatty()` 10 | 11 | Returns false. 12 | 13 | ### `new tty.ReadStream()` 14 | 15 | Throws an error. 16 | 17 | ### `new tty.WriteStream()` 18 | 19 | Throws an error. 20 | 21 | ## License 22 | 23 | [MIT](./LICENSE) 24 | -------------------------------------------------------------------------------- /security.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | Only the latest major version is supported at any given time. 5 | 6 | ## Reporting a Vulnerability 7 | 8 | To report a security vulnerability, please use the 9 | [Tidelift security contact](https://tidelift.com/security). 10 | Tidelift will coordinate the fix and disclosure. 11 | --------------------------------------------------------------------------------