From 4081c2036a5af21519095da1b8b99c507b0fba93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sun, 17 Apr 2022 17:37:10 +0200 Subject: Deprecation --- node_modules/prompts/dist/util/style.js | 51 --------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 node_modules/prompts/dist/util/style.js (limited to 'node_modules/prompts/dist/util/style.js') diff --git a/node_modules/prompts/dist/util/style.js b/node_modules/prompts/dist/util/style.js deleted file mode 100644 index ed1a49b..0000000 --- a/node_modules/prompts/dist/util/style.js +++ /dev/null @@ -1,51 +0,0 @@ -'use strict'; - -const c = require('kleur'); - -const figures = require('./figures'); // rendering user input. - - -const styles = Object.freeze({ - password: { - scale: 1, - render: input => '*'.repeat(input.length) - }, - emoji: { - scale: 2, - render: input => '😃'.repeat(input.length) - }, - invisible: { - scale: 0, - render: input => '' - }, - default: { - scale: 1, - render: input => `${input}` - } -}); - -const render = type => styles[type] || styles.default; // icon to signalize a prompt. - - -const symbols = Object.freeze({ - aborted: c.red(figures.cross), - done: c.green(figures.tick), - exited: c.yellow(figures.cross), - default: c.cyan('?') -}); - -const symbol = (done, aborted, exited) => aborted ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default; // between the question and the user's input. - - -const delimiter = completing => c.gray(completing ? figures.ellipsis : figures.pointerSmall); - -const item = (expandable, expanded) => c.gray(expandable ? expanded ? figures.pointerSmall : '+' : figures.line); - -module.exports = { - styles, - render, - symbols, - symbol, - delimiter, - item -}; \ No newline at end of file -- cgit