diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/is-interactive')
5 files changed, 0 insertions, 138 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/is-interactive/index.d.ts b/sandbox/testAppNevena/Front/node_modules/is-interactive/index.d.ts deleted file mode 100644 index 5984dc60..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-interactive/index.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/// <reference types="node"/> - -declare namespace isInteractive { - interface Options { - /** - The stream to check. - - @default process.stdout - */ - readonly stream?: NodeJS.WritableStream; - } -} - -/** -Check if stdout or stderr is [interactive](https://unix.stackexchange.com/a/43389/7678). - -It checks that the stream is [TTY](https://jameshfisher.com/2017/12/09/what-is-a-tty/), not a dumb terminal, and not running in a CI. - -This can be useful to decide whether to present interactive UI or animations in the terminal. - -@example -``` -import isInteractive = require('is-interactive'); - -isInteractive(); -//=> true -``` -*/ -declare function isInteractive(options?: isInteractive.Options): boolean; - -export = isInteractive; diff --git a/sandbox/testAppNevena/Front/node_modules/is-interactive/index.js b/sandbox/testAppNevena/Front/node_modules/is-interactive/index.js deleted file mode 100644 index 99ff8230..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-interactive/index.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = ({stream = process.stdout} = {}) => { - return Boolean( - stream && stream.isTTY && - process.env.TERM !== 'dumb' && - !('CI' in process.env) - ); -}; diff --git a/sandbox/testAppNevena/Front/node_modules/is-interactive/license b/sandbox/testAppNevena/Front/node_modules/is-interactive/license deleted file mode 100644 index e7af2f77..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-interactive/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sandbox/testAppNevena/Front/node_modules/is-interactive/package.json b/sandbox/testAppNevena/Front/node_modules/is-interactive/package.json deleted file mode 100644 index dc758c68..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-interactive/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "is-interactive", - "version": "1.0.0", - "description": "Check if stdout or stderr is interactive", - "license": "MIT", - "repository": "sindresorhus/is-interactive", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "interactive", - "stdout", - "stderr", - "detect", - "is", - "terminal", - "shell", - "tty" - ], - "devDependencies": { - "@types/node": "^12.0.12", - "ava": "^2.1.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - } -} diff --git a/sandbox/testAppNevena/Front/node_modules/is-interactive/readme.md b/sandbox/testAppNevena/Front/node_modules/is-interactive/readme.md deleted file mode 100644 index 49a85987..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-interactive/readme.md +++ /dev/null @@ -1,51 +0,0 @@ -# is-interactive [](https://travis-ci.com/sindresorhus/is-interactive) - -> Check if stdout or stderr is [interactive](https://unix.stackexchange.com/a/43389/7678) - -It checks that the stream is [TTY](https://jameshfisher.com/2017/12/09/what-is-a-tty/), not a dumb terminal, and not running in a CI. - -This can be useful to decide whether to present interactive UI or animations in the terminal. - - -## Install - -``` -$ npm install is-interactive -``` - - -## Usage - -```js -const isInteractive = require('is-interactive'); - -isInteractive(); -//=> true -``` - - -## API - -### isInteractive(options?) - -#### options - -Type: `object` - -##### stream - -Type: [`stream.Writable`](https://nodejs.org/api/stream.html#stream_class_stream_writable)<br> -Default: [`process.stdout`](https://nodejs.org/api/process.html#process_process_stdout) - -The stream to check. - - -## FAQ - -#### Why are you not using [`ci-info`](https://github.com/watson/ci-info) for the CI check? - -It's silly to have to detect individual CIs. They should identify themselves with the `CI` environment variable, and most do just that. A manually maintained list of detections will easily get out of date. And if a package using `ci-info` doesn't update to the latest version all the time, they will not support certain CIs. It also creates unpredictability as you might assume a CI is not supported and then suddenly it gets supported and you didn't account for that. In addition, some of the manual detections are loose and might cause false-positives which could create hard-to-debug bugs. - -#### Why does this even exist? It's just a few lines. - -It's not about the number of lines, but rather discoverability and documentation. A lot of people wouldn't even know they need this. Feel free to copy-paste the code if you don't want the dependency. You might also want to read [this blog post](https://blog.sindresorhus.com/small-focused-modules-9238d977a92a). |