Deployed the page to Github Pages.

This commit is contained in:
Batuhan Berk Başoğlu 2024-11-03 21:30:09 -05:00
parent 1d79754e93
commit 2c89899458
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
62797 changed files with 6551425 additions and 15279 deletions

22
node_modules/@inquirer/prompts/LICENSE generated vendored Normal file
View file

@ -0,0 +1,22 @@
Copyright (c) 2023 Simon Boudrias
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.

389
node_modules/@inquirer/prompts/README.md generated vendored Normal file
View file

@ -0,0 +1,389 @@
<img width="75px" height="75px" align="right" alt="Inquirer Logo" src="https://raw.githubusercontent.com/SBoudrias/Inquirer.js/main/assets/inquirer_readme.svg?sanitize=true" title="Inquirer.js"/>
# Inquirer
[![npm](https://badge.fury.io/js/@inquirer%2Fprompts.svg)](https://www.npmjs.com/package/@inquirer/prompts)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2FSBoudrias%2FInquirer.js?ref=badge_shield)
A collection of common interactive command line user interfaces.
![List prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/list.svg)
Give it a try in your own terminal!
```sh
npx @inquirer/demo@latest
```
# Installation
<table>
<tr>
<th>npm</th>
<th>yarn</th>
</tr>
<tr>
<td>
```sh
npm install @inquirer/prompts
```
</td>
<td>
```sh
yarn add @inquirer/prompts
```
</td>
</tr>
</table>
> [!NOTE]
> Inquirer recently underwent a rewrite from the ground up to reduce the package size and improve performance. The previous version of the package is still maintained (though not actively developed), and offered hundreds of community contributed prompts that might not have been migrated to the latest API. If this is what you're looking for, the [previous package is over here](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/inquirer).
# Usage
```js
import { input } from '@inquirer/prompts';
const answer = await input({ message: 'Enter your name' });
```
# Prompts
## [Input](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/input)
![Input prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/input.svg)
```js
import { input } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/input) for usage example and options documentation.
## [Select](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/select)
![Select prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/list.svg)
```js
import { select } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/select) for usage example and options documentation.
## [Checkbox](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/checkbox)
![Checkbox prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/checkbox.svg)
```js
import { checkbox } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/checkbox) for usage example and options documentation.
## [Confirm](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/confirm)
![Confirm prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/confirm.svg)
```js
import { confirm } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/confirm) for usage example and options documentation.
## [Search](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/search)
![search prompt](https://raw.githubusercontent.com/SBoudrias/Inquirer.js/f459199e679aec7676cecc0fc12ef8a4cd3dda0b/assets/screenshots/search.png)
```js
import { search } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/search) for usage example and options documentation.
## [Password](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/password)
![Password prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/password.svg)
```js
import { password } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/password) for usage example and options documentation.
## [Expand](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/expand)
![Expand prompt closed](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/expand-y.svg)
![Expand prompt expanded](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/expand-d.svg)
```js
import { expand } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/expand) for usage example and options documentation.
## [Editor](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/editor)
Launches an instance of the users preferred editor on a temporary file. Once the user exits their editor, the content of the temporary file is read as the answer. The editor used is determined by reading the $VISUAL or $EDITOR environment variables. If neither of those are present, the OS default is used (notepad on Windows, vim on Mac or Linux.)
```js
import { editor } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/editor) for usage example and options documentation.
## [Number](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/number)
Very similar to the `input` prompt, but with built-in number validation configuration option.
```js
import { number } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/number) for usage example and options documentation.
## [Raw List](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/rawlist)
![Raw list prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/rawlist.svg)
```js
import { rawlist } from '@inquirer/prompts';
```
[See documentation](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/rawlist) for usage example and options documentation.
# Create your own prompts
The [API documentation is over here](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/core), and our [testing utilities here](https://github.com/SBoudrias/Inquirer.js/tree/main/packages/testing).
# Advanced usage
All inquirer prompts are a function taking 2 arguments. The first argument is the prompt configuration (unique to each prompt). The second is providing contextual or runtime configuration.
The context options are:
| Property | Type | Required | Description |
| ----------------- | ----------------------- | -------- | ------------------------------------------------------------ |
| input | `NodeJS.ReadableStream` | no | The stdin stream (defaults to `process.stdin`) |
| output | `NodeJS.WritableStream` | no | The stdout stream (defaults to `process.stdout`) |
| clearPromptOnDone | `boolean` | no | If true, we'll clear the screen after the prompt is answered |
Example:
```js
import { confirm } from '@inquirer/prompts';
const allowEmail = await confirm(
{ message: 'Do you allow us to send you email?' },
{
output: new Stream.Writable({
write(chunk, _encoding, next) {
// Do something
next();
},
}),
clearPromptOnDone: true,
},
);
```
## Canceling prompt
All prompt functions are returning a cancelable promise. This special promise type has a `cancel` method that'll cancel and cleanup the prompt.
On calling `cancel`, the answer promise will become rejected.
```js
import { confirm } from '@inquirer/prompts';
const answer = confirm(...); // note: for this you cannot use `await`
answer.cancel();
```
# Recipes
## Get answers in an object
When asking many questions, you might not want to keep one variable per answer everywhere. In which case, you can put the answer inside an object.
```js
import { input, confirm } from '@inquirer/prompts';
const answers = {
firstName: await input({ message: "What's your first name?" }),
allowEmail: await confirm({ message: 'Do you allow us to send you email?' }),
};
console.log(answers.firstName);
```
## Ask a question conditionally
Maybe some questions depend on some other question's answer.
```js
import { input, confirm } from '@inquirer/prompts';
const allowEmail = await confirm({ message: 'Do you allow us to send you email?' });
let email;
if (allowEmail) {
email = await input({ message: 'What is your email address' });
}
```
## Get default value after timeout
```js
import { setTimeout } from 'node:timers/promises';
import { input } from '@inquirer/prompts';
const ac = new AbortController();
const prompt = input({
message: 'Enter a value (timing out in 5 seconds)',
});
prompt
.finally(() => {
ac.abort();
})
// Silencing the cancellation error.
.catch(() => {});
const defaultValue = setTimeout(5000, 'timeout', { signal: ac.signal }).then(() => {
prompt.cancel();
return 'Timed out!';
});
const answer = await Promise.race([defaultValue, prompt]);
```
## Using as pre-commit/git hooks, or scripts
By default scripts ran from tools like `husky`/`lint-staged` might not run inside an interactive shell. In non-interactive shell, Inquirer cannot run, and users cannot send keypress events to the process.
For it to work, you must make sure you start a `tty` (or "interactive" input stream.)
If those scripts are set within your `package.json`, you can define the stream like so:
```json
"precommit": "my-script < /dev/tty"
```
Or if in a shell script file, you'll do it like so: (on Windows that's likely your only option)
```sh
#!/bin/sh
exec < /dev/tty
node my-script.js
```
## Wait for config
Maybe some question configuration require to await a value.
```js
import { confirm } from '@inquirer/prompts';
const answer = await confirm({ message: await getMessage() });
```
# Community prompts
If you created a cool prompt, [send us a PR adding it](https://github.com/SBoudrias/Inquirer.js/edit/main/README.md) to the list below!
[**Interactive List Prompt**](https://github.com/pgibler/inquirer-interactive-list-prompt)<br/>
Select a choice either with arrow keys + Enter or by pressing a key associated with a choice.
```
? Choose an option:
> Run command (D)
Quit (Q)
```
[**Action Select Prompt**](https://github.com/zenithlight/inquirer-action-select)<br/>
Choose an item from a list and choose an action to take by pressing a key.
```
? Choose a file Open <O> Edit <E> Delete <X>
image.png
audio.mp3
code.py
```
[**Table Multiple Prompt**](https://github.com/Bartheleway/inquirer-table-multiple)<br/>
Select multiple answer from a table display.
```sh
Choose between choices? (Press <space> to select, <Up and Down> to move rows,
<Left and Right> to move columns)
┌──────────┬───────┬───────┐
│ 1-2 of 2 │ Yes? │ No? |
├──────────┼───────┼───────┤
│ Choice 1 │ [ ◯ ] │ ◯ |
├──────────┼───────┼───────┤
│ Choice 2 │ ◯ │ ◯ |
└──────────┴───────┴───────┘
```
[**Toggle Prompt**](https://github.com/skarahoda/inquirer-toggle)<br/>
Confirm with a toggle. Select a choice with arrow keys + Enter.
```
? Do you want to continue? no / yes
```
[**Sortable Checkbox Prompt**](https://github.com/th0r/inquirer-sortable-checkbox)<br/>
The same as built-in checkbox prompt, but also allowing to reorder choices using ctrl+up/down.
```
? Which PRs and in what order would you like to merge? (Press <space> to select, <a> to toggle all, <i> to invert selection, <ctrl+up> to move item up, <ctrl+down> to move item down, and <enter> to proceed)
◯ PR 1
◯ PR 2
◯ PR 3
```
[**Multi Select Prompt**](https://github.com/jeffwcx/inquirer-select-pro)
An inquirer select that supports multiple selections and filtering/searching.
```
? Choose your OS, IDE, PL, etc. (Press <tab> to select/deselect, <backspace> to remove selected
option, <enter> to select option)
>> vue
>[ ] vue
[ ] vuejs
[ ] fuelphp
[ ] venv
[ ] vercel
(Use arrow keys to reveal more options)
```
[**File Selector Prompt**](https://github.com/br14n-sol/inquirer-file-selector)<br/>
A file selector, you can navigate freely between directories, choose what type of files you want to allow and it is fully customizable.
```sh
? Select a file:
/main/path/
├── folder1/
├── folder2/
├── folder3/
├── file1.txt
├── file2.pdf
└── file3.jpg (not allowed)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Use ↑↓ to navigate through the list
Press <esc> to navigate to the parent directory
Press <enter> to select a file or navigate to a directory
```
# License
Copyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>
Licensed under the MIT license.

27
node_modules/@inquirer/prompts/dist/cjs/index.js generated vendored Normal file
View file

@ -0,0 +1,27 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.select = exports.search = exports.password = exports.rawlist = exports.expand = exports.number = exports.input = exports.confirm = exports.editor = exports.Separator = exports.checkbox = void 0;
var checkbox_1 = require("@inquirer/checkbox");
Object.defineProperty(exports, "checkbox", { enumerable: true, get: function () { return __importDefault(checkbox_1).default; } });
Object.defineProperty(exports, "Separator", { enumerable: true, get: function () { return checkbox_1.Separator; } });
var editor_1 = require("@inquirer/editor");
Object.defineProperty(exports, "editor", { enumerable: true, get: function () { return __importDefault(editor_1).default; } });
var confirm_1 = require("@inquirer/confirm");
Object.defineProperty(exports, "confirm", { enumerable: true, get: function () { return __importDefault(confirm_1).default; } });
var input_1 = require("@inquirer/input");
Object.defineProperty(exports, "input", { enumerable: true, get: function () { return __importDefault(input_1).default; } });
var number_1 = require("@inquirer/number");
Object.defineProperty(exports, "number", { enumerable: true, get: function () { return __importDefault(number_1).default; } });
var expand_1 = require("@inquirer/expand");
Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return __importDefault(expand_1).default; } });
var rawlist_1 = require("@inquirer/rawlist");
Object.defineProperty(exports, "rawlist", { enumerable: true, get: function () { return __importDefault(rawlist_1).default; } });
var password_1 = require("@inquirer/password");
Object.defineProperty(exports, "password", { enumerable: true, get: function () { return __importDefault(password_1).default; } });
var search_1 = require("@inquirer/search");
Object.defineProperty(exports, "search", { enumerable: true, get: function () { return __importDefault(search_1).default; } });
var select_1 = require("@inquirer/select");
Object.defineProperty(exports, "select", { enumerable: true, get: function () { return __importDefault(select_1).default; } });

View file

@ -0,0 +1,10 @@
export { default as checkbox, Separator } from '@inquirer/checkbox';
export { default as editor } from '@inquirer/editor';
export { default as confirm } from '@inquirer/confirm';
export { default as input } from '@inquirer/input';
export { default as number } from '@inquirer/number';
export { default as expand } from '@inquirer/expand';
export { default as rawlist } from '@inquirer/rawlist';
export { default as password } from '@inquirer/password';
export { default as search } from '@inquirer/search';
export { default as select } from '@inquirer/select';

10
node_modules/@inquirer/prompts/dist/esm/index.mjs generated vendored Normal file
View file

@ -0,0 +1,10 @@
export { default as checkbox, Separator } from '@inquirer/checkbox';
export { default as editor } from '@inquirer/editor';
export { default as confirm } from '@inquirer/confirm';
export { default as input } from '@inquirer/input';
export { default as number } from '@inquirer/number';
export { default as expand } from '@inquirer/expand';
export { default as rawlist } from '@inquirer/rawlist';
export { default as password } from '@inquirer/password';
export { default as search } from '@inquirer/search';
export { default as select } from '@inquirer/select';

View file

@ -0,0 +1,10 @@
export { default as checkbox, Separator } from '@inquirer/checkbox';
export { default as editor } from '@inquirer/editor';
export { default as confirm } from '@inquirer/confirm';
export { default as input } from '@inquirer/input';
export { default as number } from '@inquirer/number';
export { default as expand } from '@inquirer/expand';
export { default as rawlist } from '@inquirer/rawlist';
export { default as password } from '@inquirer/password';
export { default as search } from '@inquirer/search';
export { default as select } from '@inquirer/select';

9
node_modules/@inquirer/prompts/dist/types/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,9 @@
export { default as checkbox, Separator } from '@inquirer/checkbox';
export { default as editor } from '@inquirer/editor';
export { default as confirm } from '@inquirer/confirm';
export { default as input } from '@inquirer/input';
export { default as number } from '@inquirer/number';
export { default as expand } from '@inquirer/expand';
export { default as rawlist } from '@inquirer/rawlist';
export { default as password } from '@inquirer/password';
export { default as select } from '@inquirer/select';

96
node_modules/@inquirer/prompts/package.json generated vendored Normal file
View file

@ -0,0 +1,96 @@
{
"name": "@inquirer/prompts",
"version": "5.3.8",
"description": "Inquirer prompts, combined in a single package",
"main": "./dist/cjs/index.js",
"typings": "./dist/cjs/types/index.d.ts",
"files": [
"dist/**/*"
],
"repository": {
"type": "git",
"url": "https://github.com/SBoudrias/Inquirer.js.git"
},
"keywords": [
"answer",
"answers",
"ask",
"base",
"cli",
"command",
"command-line",
"confirm",
"enquirer",
"generate",
"generator",
"hyper",
"input",
"inquire",
"inquirer",
"interface",
"iterm",
"javascript",
"menu",
"node",
"nodejs",
"prompt",
"promptly",
"prompts",
"question",
"readline",
"scaffold",
"scaffolder",
"scaffolding",
"stdin",
"stdout",
"terminal",
"tty",
"ui",
"yeoman",
"yo",
"zsh",
"types",
"typescript"
],
"author": "Simon Boudrias <admin@simonboudrias.com>",
"license": "MIT",
"scripts": {
"tsc": "yarn run tsc:esm && yarn run tsc:cjs",
"tsc:esm": "rm -rf dist/esm && tsc -p ./tsconfig.json",
"tsc:cjs": "rm -rf dist/cjs && tsc -p ./tsconfig.cjs.json && node ../../tools/fix-ext.mjs",
"attw": "attw --pack"
},
"engines": {
"node": ">=18"
},
"exports": {
".": {
"import": {
"types": "./dist/esm/types/index.d.mts",
"default": "./dist/esm/index.mjs"
},
"require": {
"types": "./dist/cjs/types/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"dependencies": {
"@inquirer/checkbox": "^2.4.7",
"@inquirer/confirm": "^3.1.22",
"@inquirer/editor": "^2.1.22",
"@inquirer/expand": "^2.1.22",
"@inquirer/input": "^2.2.9",
"@inquirer/number": "^1.0.10",
"@inquirer/password": "^2.1.22",
"@inquirer/rawlist": "^2.2.4",
"@inquirer/search": "^1.0.7",
"@inquirer/select": "^2.4.7"
},
"devDependencies": {
"@inquirer/type": "^1.5.2"
},
"homepage": "https://github.com/SBoudrias/Inquirer.js/blob/main/packages/prompts/README.md",
"sideEffects": false,
"gitHead": "273b16eeb96fab346854b9b92257c930d7ca7661"
}