Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bevry/figures

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bevry/figures - npm Package Compare versions

Comparing version 6.1.0-next.1698850985.c3ec1fe39a5ef8cd9dd4fa669b239138df807938 to 7.0.0-next.1700460905.ce55e7d0825c4c73b6efaeca7c4d769afdd01988

SECURITY.md

700

compiled-types/index.d.ts

@@ -0,694 +1,12 @@

/** Does the current Terminal support Unicode? */
export declare function isUnicodeSupported(): boolean;
export declare const mainSymbols: {
tick: string;
info: string;
warning: string;
cross: string;
squareSmall: string;
squareSmallFilled: string;
circle: string;
circleFilled: string;
circleDotted: string;
circleDouble: string;
circleCircle: string;
circleCross: string;
circlePipe: string;
radioOn: string;
radioOff: string;
checkboxOn: string;
checkboxOff: string;
checkboxCircleOn: string;
checkboxCircleOff: string;
pointer: string;
triangleUpOutline: string;
triangleLeft: string;
triangleRight: string;
lozenge: string;
lozengeOutline: string;
hamburger: string;
smiley: string;
mustache: string;
star: string;
play: string;
nodejs: string;
oneSeventh: string;
oneNinth: string;
oneTenth: string;
circleQuestionMark: string;
questionMarkPrefix: string;
square: string;
squareDarkShade: string;
squareMediumShade: string;
squareLightShade: string;
squareTop: string;
squareBottom: string;
squareLeft: string;
squareRight: string;
squareCenter: string;
bullet: string;
dot: string;
ellipsis: string;
pointerSmall: string;
triangleUp: string;
triangleUpSmall: string;
triangleDown: string;
triangleDownSmall: string;
triangleLeftSmall: string;
triangleRightSmall: string;
home: string;
heart: string;
musicNote: string;
musicNoteBeamed: string;
arrowUp: string;
arrowDown: string;
arrowLeft: string;
arrowRight: string;
arrowLeftRight: string;
arrowUpDown: string;
almostEqual: string;
notEqual: string;
lessOrEqual: string;
greaterOrEqual: string;
identical: string;
infinity: string;
subscriptZero: string;
subscriptOne: string;
subscriptTwo: string;
subscriptThree: string;
subscriptFour: string;
subscriptFive: string;
subscriptSix: string;
subscriptSeven: string;
subscriptEight: string;
subscriptNine: string;
oneHalf: string;
oneThird: string;
oneQuarter: string;
oneFifth: string;
oneSixth: string;
oneEighth: string;
twoThirds: string;
twoFifths: string;
threeQuarters: string;
threeFifths: string;
threeEighths: string;
fourFifths: string;
fiveSixths: string;
fiveEighths: string;
sevenEighths: string;
line: string;
lineBold: string;
lineDouble: string;
lineDashed0: string;
lineDashed1: string;
lineDashed2: string;
lineDashed3: string;
lineDashed4: string;
lineDashed5: string;
lineDashed6: string;
lineDashed7: string;
lineDashed8: string;
lineDashed9: string;
lineDashed10: string;
lineDashed11: string;
lineDashed12: string;
lineDashed13: string;
lineDashed14: string;
lineDashed15: string;
lineVertical: string;
lineVerticalBold: string;
lineVerticalDouble: string;
lineVerticalDashed0: string;
lineVerticalDashed1: string;
lineVerticalDashed2: string;
lineVerticalDashed3: string;
lineVerticalDashed4: string;
lineVerticalDashed5: string;
lineVerticalDashed6: string;
lineVerticalDashed7: string;
lineVerticalDashed8: string;
lineVerticalDashed9: string;
lineVerticalDashed10: string;
lineVerticalDashed11: string;
lineDownLeft: string;
lineDownLeftArc: string;
lineDownBoldLeftBold: string;
lineDownBoldLeft: string;
lineDownLeftBold: string;
lineDownDoubleLeftDouble: string;
lineDownDoubleLeft: string;
lineDownLeftDouble: string;
lineDownRight: string;
lineDownRightArc: string;
lineDownBoldRightBold: string;
lineDownBoldRight: string;
lineDownRightBold: string;
lineDownDoubleRightDouble: string;
lineDownDoubleRight: string;
lineDownRightDouble: string;
lineUpLeft: string;
lineUpLeftArc: string;
lineUpBoldLeftBold: string;
lineUpBoldLeft: string;
lineUpLeftBold: string;
lineUpDoubleLeftDouble: string;
lineUpDoubleLeft: string;
lineUpLeftDouble: string;
lineUpRight: string;
lineUpRightArc: string;
lineUpBoldRightBold: string;
lineUpBoldRight: string;
lineUpRightBold: string;
lineUpDoubleRightDouble: string;
lineUpDoubleRight: string;
lineUpRightDouble: string;
lineUpDownLeft: string;
lineUpBoldDownBoldLeftBold: string;
lineUpBoldDownBoldLeft: string;
lineUpDownLeftBold: string;
lineUpBoldDownLeftBold: string;
lineUpDownBoldLeftBold: string;
lineUpDownBoldLeft: string;
lineUpBoldDownLeft: string;
lineUpDoubleDownDoubleLeftDouble: string;
lineUpDoubleDownDoubleLeft: string;
lineUpDownLeftDouble: string;
lineUpDownRight: string;
lineUpBoldDownBoldRightBold: string;
lineUpBoldDownBoldRight: string;
lineUpDownRightBold: string;
lineUpBoldDownRightBold: string;
lineUpDownBoldRightBold: string;
lineUpDownBoldRight: string;
lineUpBoldDownRight: string;
lineUpDoubleDownDoubleRightDouble: string;
lineUpDoubleDownDoubleRight: string;
lineUpDownRightDouble: string;
lineDownLeftRight: string;
lineDownBoldLeftBoldRightBold: string;
lineDownLeftBoldRightBold: string;
lineDownBoldLeftRight: string;
lineDownBoldLeftBoldRight: string;
lineDownBoldLeftRightBold: string;
lineDownLeftRightBold: string;
lineDownLeftBoldRight: string;
lineDownDoubleLeftDoubleRightDouble: string;
lineDownDoubleLeftRight: string;
lineDownLeftDoubleRightDouble: string;
lineUpLeftRight: string;
lineUpBoldLeftBoldRightBold: string;
lineUpLeftBoldRightBold: string;
lineUpBoldLeftRight: string;
lineUpBoldLeftBoldRight: string;
lineUpBoldLeftRightBold: string;
lineUpLeftRightBold: string;
lineUpLeftBoldRight: string;
lineUpDoubleLeftDoubleRightDouble: string;
lineUpDoubleLeftRight: string;
lineUpLeftDoubleRightDouble: string;
lineUpDownLeftRight: string;
lineUpBoldDownBoldLeftBoldRightBold: string;
lineUpDownBoldLeftBoldRightBold: string;
lineUpBoldDownLeftBoldRightBold: string;
lineUpBoldDownBoldLeftRightBold: string;
lineUpBoldDownBoldLeftBoldRight: string;
lineUpBoldDownLeftRight: string;
lineUpDownBoldLeftRight: string;
lineUpDownLeftBoldRight: string;
lineUpDownLeftRightBold: string;
lineUpBoldDownBoldLeftRight: string;
lineUpDownLeftBoldRightBold: string;
lineUpBoldDownLeftBoldRight: string;
lineUpBoldDownLeftRightBold: string;
lineUpDownBoldLeftBoldRight: string;
lineUpDownBoldLeftRightBold: string;
lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
lineUpDoubleDownDoubleLeftRight: string;
lineUpDownLeftDoubleRightDouble: string;
lineCross: string;
lineBackslash: string;
lineSlash: string;
};
export declare const fallbackSymbols: {
tick: string;
info: string;
warning: string;
cross: string;
squareSmall: string;
squareSmallFilled: string;
circle: string;
circleFilled: string;
circleDotted: string;
circleDouble: string;
circleCircle: string;
circleCross: string;
circlePipe: string;
radioOn: string;
radioOff: string;
checkboxOn: string;
checkboxOff: string;
checkboxCircleOn: string;
checkboxCircleOff: string;
pointer: string;
triangleUpOutline: string;
triangleLeft: string;
triangleRight: string;
lozenge: string;
lozengeOutline: string;
hamburger: string;
smiley: string;
mustache: string;
star: string;
play: string;
nodejs: string;
oneSeventh: string;
oneNinth: string;
oneTenth: string;
circleQuestionMark: string;
questionMarkPrefix: string;
square: string;
squareDarkShade: string;
squareMediumShade: string;
squareLightShade: string;
squareTop: string;
squareBottom: string;
squareLeft: string;
squareRight: string;
squareCenter: string;
bullet: string;
dot: string;
ellipsis: string;
pointerSmall: string;
triangleUp: string;
triangleUpSmall: string;
triangleDown: string;
triangleDownSmall: string;
triangleLeftSmall: string;
triangleRightSmall: string;
home: string;
heart: string;
musicNote: string;
musicNoteBeamed: string;
arrowUp: string;
arrowDown: string;
arrowLeft: string;
arrowRight: string;
arrowLeftRight: string;
arrowUpDown: string;
almostEqual: string;
notEqual: string;
lessOrEqual: string;
greaterOrEqual: string;
identical: string;
infinity: string;
subscriptZero: string;
subscriptOne: string;
subscriptTwo: string;
subscriptThree: string;
subscriptFour: string;
subscriptFive: string;
subscriptSix: string;
subscriptSeven: string;
subscriptEight: string;
subscriptNine: string;
oneHalf: string;
oneThird: string;
oneQuarter: string;
oneFifth: string;
oneSixth: string;
oneEighth: string;
twoThirds: string;
twoFifths: string;
threeQuarters: string;
threeFifths: string;
threeEighths: string;
fourFifths: string;
fiveSixths: string;
fiveEighths: string;
sevenEighths: string;
line: string;
lineBold: string;
lineDouble: string;
lineDashed0: string;
lineDashed1: string;
lineDashed2: string;
lineDashed3: string;
lineDashed4: string;
lineDashed5: string;
lineDashed6: string;
lineDashed7: string;
lineDashed8: string;
lineDashed9: string;
lineDashed10: string;
lineDashed11: string;
lineDashed12: string;
lineDashed13: string;
lineDashed14: string;
lineDashed15: string;
lineVertical: string;
lineVerticalBold: string;
lineVerticalDouble: string;
lineVerticalDashed0: string;
lineVerticalDashed1: string;
lineVerticalDashed2: string;
lineVerticalDashed3: string;
lineVerticalDashed4: string;
lineVerticalDashed5: string;
lineVerticalDashed6: string;
lineVerticalDashed7: string;
lineVerticalDashed8: string;
lineVerticalDashed9: string;
lineVerticalDashed10: string;
lineVerticalDashed11: string;
lineDownLeft: string;
lineDownLeftArc: string;
lineDownBoldLeftBold: string;
lineDownBoldLeft: string;
lineDownLeftBold: string;
lineDownDoubleLeftDouble: string;
lineDownDoubleLeft: string;
lineDownLeftDouble: string;
lineDownRight: string;
lineDownRightArc: string;
lineDownBoldRightBold: string;
lineDownBoldRight: string;
lineDownRightBold: string;
lineDownDoubleRightDouble: string;
lineDownDoubleRight: string;
lineDownRightDouble: string;
lineUpLeft: string;
lineUpLeftArc: string;
lineUpBoldLeftBold: string;
lineUpBoldLeft: string;
lineUpLeftBold: string;
lineUpDoubleLeftDouble: string;
lineUpDoubleLeft: string;
lineUpLeftDouble: string;
lineUpRight: string;
lineUpRightArc: string;
lineUpBoldRightBold: string;
lineUpBoldRight: string;
lineUpRightBold: string;
lineUpDoubleRightDouble: string;
lineUpDoubleRight: string;
lineUpRightDouble: string;
lineUpDownLeft: string;
lineUpBoldDownBoldLeftBold: string;
lineUpBoldDownBoldLeft: string;
lineUpDownLeftBold: string;
lineUpBoldDownLeftBold: string;
lineUpDownBoldLeftBold: string;
lineUpDownBoldLeft: string;
lineUpBoldDownLeft: string;
lineUpDoubleDownDoubleLeftDouble: string;
lineUpDoubleDownDoubleLeft: string;
lineUpDownLeftDouble: string;
lineUpDownRight: string;
lineUpBoldDownBoldRightBold: string;
lineUpBoldDownBoldRight: string;
lineUpDownRightBold: string;
lineUpBoldDownRightBold: string;
lineUpDownBoldRightBold: string;
lineUpDownBoldRight: string;
lineUpBoldDownRight: string;
lineUpDoubleDownDoubleRightDouble: string;
lineUpDoubleDownDoubleRight: string;
lineUpDownRightDouble: string;
lineDownLeftRight: string;
lineDownBoldLeftBoldRightBold: string;
lineDownLeftBoldRightBold: string;
lineDownBoldLeftRight: string;
lineDownBoldLeftBoldRight: string;
lineDownBoldLeftRightBold: string;
lineDownLeftRightBold: string;
lineDownLeftBoldRight: string;
lineDownDoubleLeftDoubleRightDouble: string;
lineDownDoubleLeftRight: string;
lineDownLeftDoubleRightDouble: string;
lineUpLeftRight: string;
lineUpBoldLeftBoldRightBold: string;
lineUpLeftBoldRightBold: string;
lineUpBoldLeftRight: string;
lineUpBoldLeftBoldRight: string;
lineUpBoldLeftRightBold: string;
lineUpLeftRightBold: string;
lineUpLeftBoldRight: string;
lineUpDoubleLeftDoubleRightDouble: string;
lineUpDoubleLeftRight: string;
lineUpLeftDoubleRightDouble: string;
lineUpDownLeftRight: string;
lineUpBoldDownBoldLeftBoldRightBold: string;
lineUpDownBoldLeftBoldRightBold: string;
lineUpBoldDownLeftBoldRightBold: string;
lineUpBoldDownBoldLeftRightBold: string;
lineUpBoldDownBoldLeftBoldRight: string;
lineUpBoldDownLeftRight: string;
lineUpDownBoldLeftRight: string;
lineUpDownLeftBoldRight: string;
lineUpDownLeftRightBold: string;
lineUpBoldDownBoldLeftRight: string;
lineUpDownLeftBoldRightBold: string;
lineUpBoldDownLeftBoldRight: string;
lineUpBoldDownLeftRightBold: string;
lineUpDownBoldLeftBoldRight: string;
lineUpDownBoldLeftRightBold: string;
lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
lineUpDoubleDownDoubleLeftRight: string;
lineUpDownLeftDoubleRightDouble: string;
lineCross: string;
lineBackslash: string;
lineSlash: string;
};
declare const figures: {
tick: string;
info: string;
warning: string;
cross: string;
squareSmall: string;
squareSmallFilled: string;
circle: string;
circleFilled: string;
circleDotted: string;
circleDouble: string;
circleCircle: string;
circleCross: string;
circlePipe: string;
radioOn: string;
radioOff: string;
checkboxOn: string;
checkboxOff: string;
checkboxCircleOn: string;
checkboxCircleOff: string;
pointer: string;
triangleUpOutline: string;
triangleLeft: string;
triangleRight: string;
lozenge: string;
lozengeOutline: string;
hamburger: string;
smiley: string;
mustache: string;
star: string;
play: string;
nodejs: string;
oneSeventh: string;
oneNinth: string;
oneTenth: string;
circleQuestionMark: string;
questionMarkPrefix: string;
square: string;
squareDarkShade: string;
squareMediumShade: string;
squareLightShade: string;
squareTop: string;
squareBottom: string;
squareLeft: string;
squareRight: string;
squareCenter: string;
bullet: string;
dot: string;
ellipsis: string;
pointerSmall: string;
triangleUp: string;
triangleUpSmall: string;
triangleDown: string;
triangleDownSmall: string;
triangleLeftSmall: string;
triangleRightSmall: string;
home: string;
heart: string;
musicNote: string;
musicNoteBeamed: string;
arrowUp: string;
arrowDown: string;
arrowLeft: string;
arrowRight: string;
arrowLeftRight: string;
arrowUpDown: string;
almostEqual: string;
notEqual: string;
lessOrEqual: string;
greaterOrEqual: string;
identical: string;
infinity: string;
subscriptZero: string;
subscriptOne: string;
subscriptTwo: string;
subscriptThree: string;
subscriptFour: string;
subscriptFive: string;
subscriptSix: string;
subscriptSeven: string;
subscriptEight: string;
subscriptNine: string;
oneHalf: string;
oneThird: string;
oneQuarter: string;
oneFifth: string;
oneSixth: string;
oneEighth: string;
twoThirds: string;
twoFifths: string;
threeQuarters: string;
threeFifths: string;
threeEighths: string;
fourFifths: string;
fiveSixths: string;
fiveEighths: string;
sevenEighths: string;
line: string;
lineBold: string;
lineDouble: string;
lineDashed0: string;
lineDashed1: string;
lineDashed2: string;
lineDashed3: string;
lineDashed4: string;
lineDashed5: string;
lineDashed6: string;
lineDashed7: string;
lineDashed8: string;
lineDashed9: string;
lineDashed10: string;
lineDashed11: string;
lineDashed12: string;
lineDashed13: string;
lineDashed14: string;
lineDashed15: string;
lineVertical: string;
lineVerticalBold: string;
lineVerticalDouble: string;
lineVerticalDashed0: string;
lineVerticalDashed1: string;
lineVerticalDashed2: string;
lineVerticalDashed3: string;
lineVerticalDashed4: string;
lineVerticalDashed5: string;
lineVerticalDashed6: string;
lineVerticalDashed7: string;
lineVerticalDashed8: string;
lineVerticalDashed9: string;
lineVerticalDashed10: string;
lineVerticalDashed11: string;
lineDownLeft: string;
lineDownLeftArc: string;
lineDownBoldLeftBold: string;
lineDownBoldLeft: string;
lineDownLeftBold: string;
lineDownDoubleLeftDouble: string;
lineDownDoubleLeft: string;
lineDownLeftDouble: string;
lineDownRight: string;
lineDownRightArc: string;
lineDownBoldRightBold: string;
lineDownBoldRight: string;
lineDownRightBold: string;
lineDownDoubleRightDouble: string;
lineDownDoubleRight: string;
lineDownRightDouble: string;
lineUpLeft: string;
lineUpLeftArc: string;
lineUpBoldLeftBold: string;
lineUpBoldLeft: string;
lineUpLeftBold: string;
lineUpDoubleLeftDouble: string;
lineUpDoubleLeft: string;
lineUpLeftDouble: string;
lineUpRight: string;
lineUpRightArc: string;
lineUpBoldRightBold: string;
lineUpBoldRight: string;
lineUpRightBold: string;
lineUpDoubleRightDouble: string;
lineUpDoubleRight: string;
lineUpRightDouble: string;
lineUpDownLeft: string;
lineUpBoldDownBoldLeftBold: string;
lineUpBoldDownBoldLeft: string;
lineUpDownLeftBold: string;
lineUpBoldDownLeftBold: string;
lineUpDownBoldLeftBold: string;
lineUpDownBoldLeft: string;
lineUpBoldDownLeft: string;
lineUpDoubleDownDoubleLeftDouble: string;
lineUpDoubleDownDoubleLeft: string;
lineUpDownLeftDouble: string;
lineUpDownRight: string;
lineUpBoldDownBoldRightBold: string;
lineUpBoldDownBoldRight: string;
lineUpDownRightBold: string;
lineUpBoldDownRightBold: string;
lineUpDownBoldRightBold: string;
lineUpDownBoldRight: string;
lineUpBoldDownRight: string;
lineUpDoubleDownDoubleRightDouble: string;
lineUpDoubleDownDoubleRight: string;
lineUpDownRightDouble: string;
lineDownLeftRight: string;
lineDownBoldLeftBoldRightBold: string;
lineDownLeftBoldRightBold: string;
lineDownBoldLeftRight: string;
lineDownBoldLeftBoldRight: string;
lineDownBoldLeftRightBold: string;
lineDownLeftRightBold: string;
lineDownLeftBoldRight: string;
lineDownDoubleLeftDoubleRightDouble: string;
lineDownDoubleLeftRight: string;
lineDownLeftDoubleRightDouble: string;
lineUpLeftRight: string;
lineUpBoldLeftBoldRightBold: string;
lineUpLeftBoldRightBold: string;
lineUpBoldLeftRight: string;
lineUpBoldLeftBoldRight: string;
lineUpBoldLeftRightBold: string;
lineUpLeftRightBold: string;
lineUpLeftBoldRight: string;
lineUpDoubleLeftDoubleRightDouble: string;
lineUpDoubleLeftRight: string;
lineUpLeftDoubleRightDouble: string;
lineUpDownLeftRight: string;
lineUpBoldDownBoldLeftBoldRightBold: string;
lineUpDownBoldLeftBoldRightBold: string;
lineUpBoldDownLeftBoldRightBold: string;
lineUpBoldDownBoldLeftRightBold: string;
lineUpBoldDownBoldLeftBoldRight: string;
lineUpBoldDownLeftRight: string;
lineUpDownBoldLeftRight: string;
lineUpDownLeftBoldRight: string;
lineUpDownLeftRightBold: string;
lineUpBoldDownBoldLeftRight: string;
lineUpDownLeftBoldRightBold: string;
lineUpBoldDownLeftBoldRight: string;
lineUpBoldDownLeftRightBold: string;
lineUpDownBoldLeftBoldRight: string;
lineUpDownBoldLeftRightBold: string;
lineUpDoubleDownDoubleLeftDoubleRightDouble: string;
lineUpDoubleDownDoubleLeftRight: string;
lineUpDownLeftDoubleRightDouble: string;
lineCross: string;
lineBackslash: string;
lineSlash: string;
};
import * as unicodeSymbols from 'unicode-symbols';
import * as nonUnicodeSymbols from 'non-unicode-symbols';
/** Unicode Symbols */
export declare const mainSymbols: typeof unicodeSymbols;
/** Non-Unicode Symbols */
export declare const fallbackSymbols: typeof nonUnicodeSymbols;
/** Unicode or Non-Unicode Symbols based on Terminal Support */
declare const figures: typeof unicodeSymbols | typeof nonUnicodeSymbols;
export default figures;
export declare const replaceSymbols: (string: string) => string;
//# sourceMappingURL=index.d.ts.map
// https://github.com/sindresorhus/is-unicode-supported/blob/506f27260df3636555714bf10ed40ab9e6a6c96e/index.js
import { platform, env } from 'process';
/** Does the current Terminal support Unicode? */
export function isUnicodeSupported() {

@@ -17,285 +18,10 @@ if (platform !== 'win32') {

// https://github.com/bevry/figures/blob/b10ba989a9dd359faf0f197e4081b144d2e72931/index.js
const common = {
circleQuestionMark: '(?)',
questionMarkPrefix: '(?)',
square: '█',
squareDarkShade: '▓',
squareMediumShade: '▒',
squareLightShade: '░',
squareTop: '▀',
squareBottom: '▄',
squareLeft: '▌',
squareRight: '▐',
squareCenter: '■',
bullet: '●',
dot: '․',
ellipsis: '…',
pointerSmall: '›',
triangleUp: '▲',
triangleUpSmall: '▴',
triangleDown: '▼',
triangleDownSmall: '▾',
triangleLeftSmall: '◂',
triangleRightSmall: '▸',
home: '⌂',
heart: '♥',
musicNote: '♪',
musicNoteBeamed: '♫',
arrowUp: '↑',
arrowDown: '↓',
arrowLeft: '←',
arrowRight: '→',
arrowLeftRight: '↔',
arrowUpDown: '↕',
almostEqual: '≈',
notEqual: '≠',
lessOrEqual: '≤',
greaterOrEqual: '≥',
identical: '≡',
infinity: '∞',
subscriptZero: '₀',
subscriptOne: '₁',
subscriptTwo: '₂',
subscriptThree: '₃',
subscriptFour: '₄',
subscriptFive: '₅',
subscriptSix: '₆',
subscriptSeven: '₇',
subscriptEight: '₈',
subscriptNine: '₉',
oneHalf: '½',
oneThird: '⅓',
oneQuarter: '¼',
oneFifth: '⅕',
oneSixth: '⅙',
oneEighth: '⅛',
twoThirds: '⅔',
twoFifths: '⅖',
threeQuarters: '¾',
threeFifths: '⅗',
threeEighths: '⅜',
fourFifths: '⅘',
fiveSixths: '⅚',
fiveEighths: '⅝',
sevenEighths: '⅞',
line: '─',
lineBold: '━',
lineDouble: '═',
lineDashed0: '┄',
lineDashed1: '┅',
lineDashed2: '┈',
lineDashed3: '┉',
lineDashed4: '╌',
lineDashed5: '╍',
lineDashed6: '╴',
lineDashed7: '╶',
lineDashed8: '╸',
lineDashed9: '╺',
lineDashed10: '╼',
lineDashed11: '╾',
lineDashed12: '−',
lineDashed13: '–',
lineDashed14: '‐',
lineDashed15: '⁃',
lineVertical: '│',
lineVerticalBold: '┃',
lineVerticalDouble: '║',
lineVerticalDashed0: '┆',
lineVerticalDashed1: '┇',
lineVerticalDashed2: '┊',
lineVerticalDashed3: '┋',
lineVerticalDashed4: '╎',
lineVerticalDashed5: '╏',
lineVerticalDashed6: '╵',
lineVerticalDashed7: '╷',
lineVerticalDashed8: '╹',
lineVerticalDashed9: '╻',
lineVerticalDashed10: '╽',
lineVerticalDashed11: '╿',
lineDownLeft: '┐',
lineDownLeftArc: '╮',
lineDownBoldLeftBold: '┓',
lineDownBoldLeft: '┒',
lineDownLeftBold: '┑',
lineDownDoubleLeftDouble: '╗',
lineDownDoubleLeft: '╖',
lineDownLeftDouble: '╕',
lineDownRight: '┌',
lineDownRightArc: '╭',
lineDownBoldRightBold: '┏',
lineDownBoldRight: '┎',
lineDownRightBold: '┍',
lineDownDoubleRightDouble: '╔',
lineDownDoubleRight: '╓',
lineDownRightDouble: '╒',
lineUpLeft: '┘',
lineUpLeftArc: '╯',
lineUpBoldLeftBold: '┛',
lineUpBoldLeft: '┚',
lineUpLeftBold: '┙',
lineUpDoubleLeftDouble: '╝',
lineUpDoubleLeft: '╜',
lineUpLeftDouble: '╛',
lineUpRight: '└',
lineUpRightArc: '╰',
lineUpBoldRightBold: '┗',
lineUpBoldRight: '┖',
lineUpRightBold: '┕',
lineUpDoubleRightDouble: '╚',
lineUpDoubleRight: '╙',
lineUpRightDouble: '╘',
lineUpDownLeft: '┤',
lineUpBoldDownBoldLeftBold: '┫',
lineUpBoldDownBoldLeft: '┨',
lineUpDownLeftBold: '┥',
lineUpBoldDownLeftBold: '┩',
lineUpDownBoldLeftBold: '┪',
lineUpDownBoldLeft: '┧',
lineUpBoldDownLeft: '┦',
lineUpDoubleDownDoubleLeftDouble: '╣',
lineUpDoubleDownDoubleLeft: '╢',
lineUpDownLeftDouble: '╡',
lineUpDownRight: '├',
lineUpBoldDownBoldRightBold: '┣',
lineUpBoldDownBoldRight: '┠',
lineUpDownRightBold: '┝',
lineUpBoldDownRightBold: '┡',
lineUpDownBoldRightBold: '┢',
lineUpDownBoldRight: '┟',
lineUpBoldDownRight: '┞',
lineUpDoubleDownDoubleRightDouble: '╠',
lineUpDoubleDownDoubleRight: '╟',
lineUpDownRightDouble: '╞',
lineDownLeftRight: '┬',
lineDownBoldLeftBoldRightBold: '┳',
lineDownLeftBoldRightBold: '┯',
lineDownBoldLeftRight: '┰',
lineDownBoldLeftBoldRight: '┱',
lineDownBoldLeftRightBold: '┲',
lineDownLeftRightBold: '┮',
lineDownLeftBoldRight: '┭',
lineDownDoubleLeftDoubleRightDouble: '╦',
lineDownDoubleLeftRight: '╥',
lineDownLeftDoubleRightDouble: '╤',
lineUpLeftRight: '┴',
lineUpBoldLeftBoldRightBold: '┻',
lineUpLeftBoldRightBold: '┷',
lineUpBoldLeftRight: '┸',
lineUpBoldLeftBoldRight: '┹',
lineUpBoldLeftRightBold: '┺',
lineUpLeftRightBold: '┶',
lineUpLeftBoldRight: '┵',
lineUpDoubleLeftDoubleRightDouble: '╩',
lineUpDoubleLeftRight: '╨',
lineUpLeftDoubleRightDouble: '╧',
lineUpDownLeftRight: '┼',
lineUpBoldDownBoldLeftBoldRightBold: '╋',
lineUpDownBoldLeftBoldRightBold: '╈',
lineUpBoldDownLeftBoldRightBold: '╇',
lineUpBoldDownBoldLeftRightBold: '╊',
lineUpBoldDownBoldLeftBoldRight: '╉',
lineUpBoldDownLeftRight: '╀',
lineUpDownBoldLeftRight: '╁',
lineUpDownLeftBoldRight: '┽',
lineUpDownLeftRightBold: '┾',
lineUpBoldDownBoldLeftRight: '╂',
lineUpDownLeftBoldRightBold: '┿',
lineUpBoldDownLeftBoldRight: '╃',
lineUpBoldDownLeftRightBold: '╄',
lineUpDownBoldLeftBoldRight: '╅',
lineUpDownBoldLeftRightBold: '╆',
lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
lineUpDoubleDownDoubleLeftRight: '╫',
lineUpDownLeftDoubleRightDouble: '╪',
lineCross: '╳',
lineBackslash: '╲',
lineSlash: '╱',
};
const specialMainSymbols = {
tick: '✔',
info: 'ℹ',
warning: '⚠',
cross: '✘',
squareSmall: '◻',
squareSmallFilled: '◼',
circle: '◯',
circleFilled: '◉',
circleDotted: '◌',
circleDouble: '◎',
circleCircle: 'ⓞ',
circleCross: 'ⓧ',
circlePipe: 'Ⓘ',
radioOn: '◉',
radioOff: '◯',
checkboxOn: '☒',
checkboxOff: '☐',
checkboxCircleOn: 'ⓧ',
checkboxCircleOff: 'Ⓘ',
pointer: '❯',
triangleUpOutline: '△',
triangleLeft: '◀',
triangleRight: '▶',
lozenge: '◆',
lozengeOutline: '◇',
hamburger: '☰',
smiley: '㋡',
mustache: '෴',
star: '★',
play: '▶',
nodejs: '⬢',
oneSeventh: '⅐',
oneNinth: '⅑',
oneTenth: '⅒',
};
const specialFallbackSymbols = {
tick: '√',
info: 'i',
warning: '‼',
cross: '×',
squareSmall: '□',
squareSmallFilled: '■',
circle: '( )',
circleFilled: '(*)',
circleDotted: '( )',
circleDouble: '( )',
circleCircle: '(○)',
circleCross: '(×)',
circlePipe: '(│)',
radioOn: '(*)',
radioOff: '( )',
checkboxOn: '[×]',
checkboxOff: '[ ]',
checkboxCircleOn: '(×)',
checkboxCircleOff: '( )',
pointer: '>',
triangleUpOutline: '∆',
triangleLeft: '◄',
triangleRight: '►',
lozenge: '♦',
lozengeOutline: '◊',
hamburger: '≡',
smiley: '☺',
mustache: '┌─┐',
star: '✶',
play: '►',
nodejs: '♦',
oneSeventh: '1/7',
oneNinth: '1/9',
oneTenth: '1/10',
};
export const mainSymbols = { ...common, ...specialMainSymbols };
export const fallbackSymbols = { ...common, ...specialFallbackSymbols };
const shouldUseMain = isUnicodeSupported();
const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
import * as unicodeSymbols from 'unicode-symbols';
import * as nonUnicodeSymbols from 'non-unicode-symbols';
/** Unicode Symbols */
export const mainSymbols = unicodeSymbols;
/** Non-Unicode Symbols */
export const fallbackSymbols = nonUnicodeSymbols;
/** Unicode or Non-Unicode Symbols based on Terminal Support */
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
export default figures;
const replacements = Object.entries(specialMainSymbols);
// On terminals which do not support Unicode symbols, substitute them to other symbols
export const replaceSymbols = (string) => {
if (shouldUseMain) {
return string;
}
for (const [key, mainSymbol] of replacements) {
string = string.replaceAll(mainSymbol, fallbackSymbols[key]);
}
return string;
};
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.replaceSymbols = exports.fallbackSymbols = exports.mainSymbols = exports.isUnicodeSupported = void 0;
exports.fallbackSymbols = exports.mainSymbols = exports.isUnicodeSupported = void 0;
// https://github.com/sindresorhus/is-unicode-supported/blob/506f27260df3636555714bf10ed40ab9e6a6c96e/index.js
const process_1 = require("process");
/** Does the current Terminal support Unicode? */
function isUnicodeSupported() {

@@ -21,286 +45,10 @@ if (process_1.platform !== 'win32') {

// https://github.com/bevry/figures/blob/b10ba989a9dd359faf0f197e4081b144d2e72931/index.js
const common = {
circleQuestionMark: '(?)',
questionMarkPrefix: '(?)',
square: '█',
squareDarkShade: '▓',
squareMediumShade: '▒',
squareLightShade: '░',
squareTop: '▀',
squareBottom: '▄',
squareLeft: '▌',
squareRight: '▐',
squareCenter: '■',
bullet: '●',
dot: '․',
ellipsis: '…',
pointerSmall: '›',
triangleUp: '▲',
triangleUpSmall: '▴',
triangleDown: '▼',
triangleDownSmall: '▾',
triangleLeftSmall: '◂',
triangleRightSmall: '▸',
home: '⌂',
heart: '♥',
musicNote: '♪',
musicNoteBeamed: '♫',
arrowUp: '↑',
arrowDown: '↓',
arrowLeft: '←',
arrowRight: '→',
arrowLeftRight: '↔',
arrowUpDown: '↕',
almostEqual: '≈',
notEqual: '≠',
lessOrEqual: '≤',
greaterOrEqual: '≥',
identical: '≡',
infinity: '∞',
subscriptZero: '₀',
subscriptOne: '₁',
subscriptTwo: '₂',
subscriptThree: '₃',
subscriptFour: '₄',
subscriptFive: '₅',
subscriptSix: '₆',
subscriptSeven: '₇',
subscriptEight: '₈',
subscriptNine: '₉',
oneHalf: '½',
oneThird: '⅓',
oneQuarter: '¼',
oneFifth: '⅕',
oneSixth: '⅙',
oneEighth: '⅛',
twoThirds: '⅔',
twoFifths: '⅖',
threeQuarters: '¾',
threeFifths: '⅗',
threeEighths: '⅜',
fourFifths: '⅘',
fiveSixths: '⅚',
fiveEighths: '⅝',
sevenEighths: '⅞',
line: '─',
lineBold: '━',
lineDouble: '═',
lineDashed0: '┄',
lineDashed1: '┅',
lineDashed2: '┈',
lineDashed3: '┉',
lineDashed4: '╌',
lineDashed5: '╍',
lineDashed6: '╴',
lineDashed7: '╶',
lineDashed8: '╸',
lineDashed9: '╺',
lineDashed10: '╼',
lineDashed11: '╾',
lineDashed12: '−',
lineDashed13: '–',
lineDashed14: '‐',
lineDashed15: '⁃',
lineVertical: '│',
lineVerticalBold: '┃',
lineVerticalDouble: '║',
lineVerticalDashed0: '┆',
lineVerticalDashed1: '┇',
lineVerticalDashed2: '┊',
lineVerticalDashed3: '┋',
lineVerticalDashed4: '╎',
lineVerticalDashed5: '╏',
lineVerticalDashed6: '╵',
lineVerticalDashed7: '╷',
lineVerticalDashed8: '╹',
lineVerticalDashed9: '╻',
lineVerticalDashed10: '╽',
lineVerticalDashed11: '╿',
lineDownLeft: '┐',
lineDownLeftArc: '╮',
lineDownBoldLeftBold: '┓',
lineDownBoldLeft: '┒',
lineDownLeftBold: '┑',
lineDownDoubleLeftDouble: '╗',
lineDownDoubleLeft: '╖',
lineDownLeftDouble: '╕',
lineDownRight: '┌',
lineDownRightArc: '╭',
lineDownBoldRightBold: '┏',
lineDownBoldRight: '┎',
lineDownRightBold: '┍',
lineDownDoubleRightDouble: '╔',
lineDownDoubleRight: '╓',
lineDownRightDouble: '╒',
lineUpLeft: '┘',
lineUpLeftArc: '╯',
lineUpBoldLeftBold: '┛',
lineUpBoldLeft: '┚',
lineUpLeftBold: '┙',
lineUpDoubleLeftDouble: '╝',
lineUpDoubleLeft: '╜',
lineUpLeftDouble: '╛',
lineUpRight: '└',
lineUpRightArc: '╰',
lineUpBoldRightBold: '┗',
lineUpBoldRight: '┖',
lineUpRightBold: '┕',
lineUpDoubleRightDouble: '╚',
lineUpDoubleRight: '╙',
lineUpRightDouble: '╘',
lineUpDownLeft: '┤',
lineUpBoldDownBoldLeftBold: '┫',
lineUpBoldDownBoldLeft: '┨',
lineUpDownLeftBold: '┥',
lineUpBoldDownLeftBold: '┩',
lineUpDownBoldLeftBold: '┪',
lineUpDownBoldLeft: '┧',
lineUpBoldDownLeft: '┦',
lineUpDoubleDownDoubleLeftDouble: '╣',
lineUpDoubleDownDoubleLeft: '╢',
lineUpDownLeftDouble: '╡',
lineUpDownRight: '├',
lineUpBoldDownBoldRightBold: '┣',
lineUpBoldDownBoldRight: '┠',
lineUpDownRightBold: '┝',
lineUpBoldDownRightBold: '┡',
lineUpDownBoldRightBold: '┢',
lineUpDownBoldRight: '┟',
lineUpBoldDownRight: '┞',
lineUpDoubleDownDoubleRightDouble: '╠',
lineUpDoubleDownDoubleRight: '╟',
lineUpDownRightDouble: '╞',
lineDownLeftRight: '┬',
lineDownBoldLeftBoldRightBold: '┳',
lineDownLeftBoldRightBold: '┯',
lineDownBoldLeftRight: '┰',
lineDownBoldLeftBoldRight: '┱',
lineDownBoldLeftRightBold: '┲',
lineDownLeftRightBold: '┮',
lineDownLeftBoldRight: '┭',
lineDownDoubleLeftDoubleRightDouble: '╦',
lineDownDoubleLeftRight: '╥',
lineDownLeftDoubleRightDouble: '╤',
lineUpLeftRight: '┴',
lineUpBoldLeftBoldRightBold: '┻',
lineUpLeftBoldRightBold: '┷',
lineUpBoldLeftRight: '┸',
lineUpBoldLeftBoldRight: '┹',
lineUpBoldLeftRightBold: '┺',
lineUpLeftRightBold: '┶',
lineUpLeftBoldRight: '┵',
lineUpDoubleLeftDoubleRightDouble: '╩',
lineUpDoubleLeftRight: '╨',
lineUpLeftDoubleRightDouble: '╧',
lineUpDownLeftRight: '┼',
lineUpBoldDownBoldLeftBoldRightBold: '╋',
lineUpDownBoldLeftBoldRightBold: '╈',
lineUpBoldDownLeftBoldRightBold: '╇',
lineUpBoldDownBoldLeftRightBold: '╊',
lineUpBoldDownBoldLeftBoldRight: '╉',
lineUpBoldDownLeftRight: '╀',
lineUpDownBoldLeftRight: '╁',
lineUpDownLeftBoldRight: '┽',
lineUpDownLeftRightBold: '┾',
lineUpBoldDownBoldLeftRight: '╂',
lineUpDownLeftBoldRightBold: '┿',
lineUpBoldDownLeftBoldRight: '╃',
lineUpBoldDownLeftRightBold: '╄',
lineUpDownBoldLeftBoldRight: '╅',
lineUpDownBoldLeftRightBold: '╆',
lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
lineUpDoubleDownDoubleLeftRight: '╫',
lineUpDownLeftDoubleRightDouble: '╪',
lineCross: '╳',
lineBackslash: '╲',
lineSlash: '╱',
};
const specialMainSymbols = {
tick: '✔',
info: 'ℹ',
warning: '⚠',
cross: '✘',
squareSmall: '◻',
squareSmallFilled: '◼',
circle: '◯',
circleFilled: '◉',
circleDotted: '◌',
circleDouble: '◎',
circleCircle: 'ⓞ',
circleCross: 'ⓧ',
circlePipe: 'Ⓘ',
radioOn: '◉',
radioOff: '◯',
checkboxOn: '☒',
checkboxOff: '☐',
checkboxCircleOn: 'ⓧ',
checkboxCircleOff: 'Ⓘ',
pointer: '❯',
triangleUpOutline: '△',
triangleLeft: '◀',
triangleRight: '▶',
lozenge: '◆',
lozengeOutline: '◇',
hamburger: '☰',
smiley: '㋡',
mustache: '෴',
star: '★',
play: '▶',
nodejs: '⬢',
oneSeventh: '⅐',
oneNinth: '⅑',
oneTenth: '⅒',
};
const specialFallbackSymbols = {
tick: '√',
info: 'i',
warning: '‼',
cross: '×',
squareSmall: '□',
squareSmallFilled: '■',
circle: '( )',
circleFilled: '(*)',
circleDotted: '( )',
circleDouble: '( )',
circleCircle: '(○)',
circleCross: '(×)',
circlePipe: '(│)',
radioOn: '(*)',
radioOff: '( )',
checkboxOn: '[×]',
checkboxOff: '[ ]',
checkboxCircleOn: '(×)',
checkboxCircleOff: '( )',
pointer: '>',
triangleUpOutline: '∆',
triangleLeft: '◄',
triangleRight: '►',
lozenge: '♦',
lozengeOutline: '◊',
hamburger: '≡',
smiley: '☺',
mustache: '┌─┐',
star: '✶',
play: '►',
nodejs: '♦',
oneSeventh: '1/7',
oneNinth: '1/9',
oneTenth: '1/10',
};
exports.mainSymbols = { ...common, ...specialMainSymbols };
exports.fallbackSymbols = { ...common, ...specialFallbackSymbols };
const shouldUseMain = isUnicodeSupported();
const figures = shouldUseMain ? exports.mainSymbols : exports.fallbackSymbols;
const unicodeSymbols = __importStar(require("unicode-symbols"));
const nonUnicodeSymbols = __importStar(require("non-unicode-symbols"));
/** Unicode Symbols */
exports.mainSymbols = unicodeSymbols;
/** Non-Unicode Symbols */
exports.fallbackSymbols = nonUnicodeSymbols;
/** Unicode or Non-Unicode Symbols based on Terminal Support */
const figures = isUnicodeSupported() ? exports.mainSymbols : exports.fallbackSymbols;
exports.default = figures;
const replacements = Object.entries(specialMainSymbols);
// On terminals which do not support Unicode symbols, substitute them to other symbols
const replaceSymbols = (string) => {
if (shouldUseMain) {
return string;
}
for (const [key, mainSymbol] of replacements) {
string = string.replaceAll(mainSymbol, exports.fallbackSymbols[key]);
}
return string;
};
exports.replaceSymbols = replaceSymbols;
{
"name": "@bevry/figures",
"version": "6.1.0-next.1698850985.c3ec1fe39a5ef8cd9dd4fa669b239138df807938",
"version": "7.0.0-next.1700460905.ce55e7d0825c4c73b6efaeca7c4d769afdd01988",
"description": "Unicode symbols with fallbacks for older terminals. Forked to implement Bevry's best practices and maintain widespread compatibility.",
"homepage": "https://github.com/bevry/figures",
"license": "Artistic-2.0",
"author": "2023+ Benjamin Lupton <b@lupton.cc> (https://balupton.com)",
"keywords": [

@@ -35,3 +34,2 @@ "characters",

"patreon",
"flattr",
"liberapay",

@@ -42,3 +40,5 @@ "buymeacoffee",

"paypal",
"wishlist"
"---",
"discord",
"twitch"
],

@@ -48,3 +48,3 @@ "config": {

"githubSponsorsUsername": "balupton",
"thanksdevGithubUsername": "balupton",
"thanksdevGithubUsername": "bevry",
"buymeacoffeeUsername": "balupton",

@@ -58,12 +58,30 @@ "cryptoURL": "https://bevry.me/crypto",

"wishlistURL": "https://bevry.me/wishlist",
"discordServerID": "1147436445783560193",
"discordServerInvite": "nQuXddV7VP",
"twitchUsername": "balupton",
"githubUsername": "bevry",
"githubRepository": "figures",
"githubSlug": "bevry/figures",
"npmPackageName": "figures"
"npmPackageName": "@bevry/figures"
}
},
"funding": "https://bevry.me/fund",
"author": "2023+ Benjamin Lupton <b@lupton.cc> (https://balupton.com)",
"maintainers": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)"
],
"contributors": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
"Brandon Smith (https://github.com/brandon93s)",
"Christophe Hurpeau <christophe@hurpeau.com> (https://github.com/christophehurpeau)",
"Corey Farrell <git@cfware.com> (https://github.com/coreyfarrell)",
"Dimitri B. (https://github.com/BendingBender)",
"Jannis R <mail@jannisr.de> (https://github.com/derhuerst)",
"Kevin Goslar <kevin.goslar@gmail.com> (https://github.com/kevgo)",
"Richard Gibson (https://github.com/gibson042)",
"Richie Bendall <richiebendall@gmail.com> (https://github.com/Richienb)",
"Sam Verschueren (https://github.com/SamVerschueren)",
"Sindre Sorhus <sindresorhus@gmail.com> (https://github.com/sindresorhus)",
"ehmicky (https://github.com/ehmicky)"
],
"bugs": {

@@ -131,28 +149,30 @@ "url": "https://github.com/bevry/figures/issues"

},
"dependencies": {
"non-unicode-symbols": "^7.0.0-next.1700460390.ad1eb7269ee2eb20de38b315892b509eba8af1d9",
"unicode-symbols": "^7.0.1"
},
"devDependencies": {
"@bevry/update-contributors": "^1.22.0",
"@types/node": "^20.8.10",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"assert-helpers": "^8.4.0",
"eslint": "^8.52.0",
"eslint-config-bevry": "^3.28.0",
"@bevry/update-contributors": "^1.23.0",
"@types/node": "^20.9.2",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"assert-helpers": "^11.4.0",
"eslint": "^8.54.0",
"eslint-config-bevry": "^5.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"kava": "3.2.0",
"make-deno-edition": "^1.3.0",
"prettier": "^3.0.3",
"projectz": "^2.23.0",
"kava": "^7.2.0",
"prettier": "^3.1.0",
"projectz": "^3.2.0",
"surge": "^0.23.1",
"typedoc": "^0.25.3",
"typescript": "5.2.2",
"valid-directory": "^4.0.0"
"valid-directory": "^4.4.0"
},
"scripts": {
"our:clean": "rm -Rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:deno && npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types",
"our:compile:deno": "make-deno-edition --attempt",
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -Rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
"our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -Rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -Rf compiled-types && mv edition-temp compiled-types ) )",
"our:clean": "rm -rf ./docs ./edition* ./es2015 ./es5 ./out ./.next",
"our:compile": "npm run our:compile:edition-es2022 && npm run our:compile:edition-es2022-esm && npm run our:compile:types",
"our:compile:edition-es2022": "tsc --module commonjs --target ES2022 --outDir ./edition-es2022 --project tsconfig.json && ( test ! -d edition-es2022/source || ( mv edition-es2022/source edition-temp && rm -rf edition-es2022 && mv edition-temp edition-es2022 ) ) && printf '%s' '{\"type\": \"commonjs\"}' > edition-es2022/package.json",
"our:compile:edition-es2022-esm": "tsc --module ESNext --target ES2022 --outDir ./edition-es2022-esm --project tsconfig.json && ( test ! -d edition-es2022-esm/source || ( mv edition-es2022-esm/source edition-temp && rm -rf edition-es2022-esm && mv edition-temp edition-es2022-esm ) ) && printf '%s' '{\"type\": \"module\"}' > edition-es2022-esm/package.json",
"our:compile:types": "tsc --project tsconfig.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./compiled-types && ( test ! -d compiled-types/source || ( mv compiled-types/source edition-temp && rm -rf compiled-types && mv edition-temp compiled-types ) )",
"our:deploy": "printf '%s\n' 'no need for this project'",

@@ -162,3 +182,3 @@ "our:meta": "npm run our:meta:contributors && npm run our:meta:docs && npm run our:meta:projectz",

"our:meta:docs": "npm run our:meta:docs:typedoc",
"our:meta:docs:typedoc": "rm -Rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
"our:meta:docs:typedoc": "rm -rf ./docs && typedoc --exclude '**/+(*test*|node_modules)' --excludeExternals --out ./docs ./source",
"our:meta:projectz": "projectz compile",

@@ -187,18 +207,5 @@ "our:release": "npm run our:release:prepare && npm run our:release:check-changelog && npm run our:release:check-dirty && npm run our:release:tag && npm run our:release:push",

"semi": false,
"singleQuote": true
},
"contributors": [
"Benjamin Lupton <b@lupton.cc> (https://github.com/balupton)",
"Brandon Smith (https://github.com/brandon93s)",
"Christophe Hurpeau <christophe@hurpeau.com> (https://github.com/christophehurpeau)",
"Corey Farrell <git@cfware.com> (https://github.com/coreyfarrell)",
"Dimitri B. (https://github.com/BendingBender)",
"Jannis R <mail@jannisr.de> (https://github.com/derhuerst)",
"Kevin Goslar <kevin.goslar@gmail.com> (https://github.com/kevgo)",
"Richard Gibson (https://github.com/gibson042)",
"Richie Bendall <richiebendall@gmail.com> (https://github.com/Richienb)",
"Sam Verschueren (https://github.com/SamVerschueren)",
"Sindre Sorhus <sindresorhus@gmail.com> (https://github.com/sindresorhus)",
"ehmicky (https://github.com/ehmicky)"
]
"singleQuote": true,
"trailingComma": "all"
}
}

@@ -11,9 +11,8 @@ <!-- TITLE/ -->

<span class="badge-githubworkflow"><a href="https://github.com/bevry/figures/actions?query=workflow%3Abevry" title="View the status of this project's GitHub Workflow: bevry"><img src="https://github.com/bevry/figures/workflows/bevry/badge.svg" alt="Status of the GitHub Workflow: bevry" /></a></span>
<span class="badge-npmversion"><a href="https://npmjs.org/package/figures" title="View this project on NPM"><img src="https://img.shields.io/npm/v/figures.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/figures" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/figures.svg" alt="NPM downloads" /></a></span>
<span class="badge-npmversion"><a href="https://npmjs.org/package/@bevry/figures" title="View this project on NPM"><img src="https://img.shields.io/npm/v/@bevry/figures.svg" alt="NPM version" /></a></span>
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/@bevry/figures" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/@bevry/figures.svg" alt="NPM downloads" /></a></span>
<br class="badge-separator" />
<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span>
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/balupton" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span>
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/bevry" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span>
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span>
<span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span>
<span class="badge-liberapay"><a href="https://liberapay.com/bevry" title="Donate to this project using Liberapay"><img src="https://img.shields.io/badge/liberapay-donate-yellow.svg" alt="Liberapay donate button" /></a></span>

@@ -24,3 +23,5 @@ <span class="badge-buymeacoffee"><a href="https://buymeacoffee.com/balupton" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a></span>

<span class="badge-paypal"><a href="https://bevry.me/paypal" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span>
<br class="badge-separator" />
<span class="badge-discord"><a href="https://discord.gg/nQuXddV7VP" title="Join this project's community on Discord"><img src="https://img.shields.io/discord/1147436445783560193?logo=discord&amp;label=discord" alt="Discord server badge" /></a></span>
<span class="badge-twitch"><a href="https://www.twitch.tv/balupton" title="Join this project's community on Twitch"><img src="https://img.shields.io/twitch/status/balupton?logo=twitch" alt="Twitch community badge" /></a></span>

@@ -39,3 +40,3 @@ <!-- /BADGES -->

[Complete API Documentation.](http://master.figures.bevry.surge.sh/docs/)
[Complete API Documentation.](http://main.figures.bevry.surge.sh/docs/)

@@ -100,5 +101,4 @@ Forked from [sindresorhus/figures](https://github.com/sindresorhus/figures)

<span class="badge-githubsponsors"><a href="https://github.com/sponsors/balupton" title="Donate to this project using GitHub Sponsors"><img src="https://img.shields.io/badge/github-donate-yellow.svg" alt="GitHub Sponsors donate button" /></a></span>
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/balupton" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span>
<span class="badge-thanksdev"><a href="https://thanks.dev/u/gh/bevry" title="Donate to this project using ThanksDev"><img src="https://img.shields.io/badge/thanksdev-donate-yellow.svg" alt="ThanksDev donate button" /></a></span>
<span class="badge-patreon"><a href="https://patreon.com/bevry" title="Donate to this project using Patreon"><img src="https://img.shields.io/badge/patreon-donate-yellow.svg" alt="Patreon donate button" /></a></span>
<span class="badge-flattr"><a href="https://flattr.com/profile/balupton" title="Donate to this project using Flattr"><img src="https://img.shields.io/badge/flattr-donate-yellow.svg" alt="Flattr donate button" /></a></span>
<span class="badge-liberapay"><a href="https://liberapay.com/bevry" title="Donate to this project using Liberapay"><img src="https://img.shields.io/badge/liberapay-donate-yellow.svg" alt="Liberapay donate button" /></a></span>

@@ -109,3 +109,2 @@ <span class="badge-buymeacoffee"><a href="https://buymeacoffee.com/balupton" title="Donate to this project using Buy Me A Coffee"><img src="https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg" alt="Buy Me A Coffee donate button" /></a></span>

<span class="badge-paypal"><a href="https://bevry.me/paypal" title="Donate to this project using Paypal"><img src="https://img.shields.io/badge/paypal-donate-yellow.svg" alt="PayPal donate button" /></a></span>
<span class="badge-wishlist"><a href="https://bevry.me/wishlist" title="Buy an item on our wishlist for us"><img src="https://img.shields.io/badge/wishlist-donate-yellow.svg" alt="Wishlist browse button" /></a></span>

@@ -112,0 +111,0 @@ <h3>Contributors</h3>

// https://github.com/sindresorhus/is-unicode-supported/blob/506f27260df3636555714bf10ed40ab9e6a6c96e/index.js
import { platform, env } from 'process'
/** Does the current Terminal support Unicode? */
export function isUnicodeSupported() {

@@ -20,293 +22,13 @@ if (platform !== 'win32') {

// https://github.com/bevry/figures/blob/b10ba989a9dd359faf0f197e4081b144d2e72931/index.js
const common = {
circleQuestionMark: '(?)',
questionMarkPrefix: '(?)',
square: '█',
squareDarkShade: '▓',
squareMediumShade: '▒',
squareLightShade: '░',
squareTop: '▀',
squareBottom: '▄',
squareLeft: '▌',
squareRight: '▐',
squareCenter: '■',
bullet: '●',
dot: '․',
ellipsis: '…',
pointerSmall: '›',
triangleUp: '▲',
triangleUpSmall: '▴',
triangleDown: '▼',
triangleDownSmall: '▾',
triangleLeftSmall: '◂',
triangleRightSmall: '▸',
home: '⌂',
heart: '♥',
musicNote: '♪',
musicNoteBeamed: '♫',
arrowUp: '↑',
arrowDown: '↓',
arrowLeft: '←',
arrowRight: '→',
arrowLeftRight: '↔',
arrowUpDown: '↕',
almostEqual: '≈',
notEqual: '≠',
lessOrEqual: '≤',
greaterOrEqual: '≥',
identical: '≡',
infinity: '∞',
subscriptZero: '₀',
subscriptOne: '₁',
subscriptTwo: '₂',
subscriptThree: '₃',
subscriptFour: '₄',
subscriptFive: '₅',
subscriptSix: '₆',
subscriptSeven: '₇',
subscriptEight: '₈',
subscriptNine: '₉',
oneHalf: '½',
oneThird: '⅓',
oneQuarter: '¼',
oneFifth: '⅕',
oneSixth: '⅙',
oneEighth: '⅛',
twoThirds: '⅔',
twoFifths: '⅖',
threeQuarters: '¾',
threeFifths: '⅗',
threeEighths: '⅜',
fourFifths: '⅘',
fiveSixths: '⅚',
fiveEighths: '⅝',
sevenEighths: '⅞',
line: '─',
lineBold: '━',
lineDouble: '═',
lineDashed0: '┄',
lineDashed1: '┅',
lineDashed2: '┈',
lineDashed3: '┉',
lineDashed4: '╌',
lineDashed5: '╍',
lineDashed6: '╴',
lineDashed7: '╶',
lineDashed8: '╸',
lineDashed9: '╺',
lineDashed10: '╼',
lineDashed11: '╾',
lineDashed12: '−',
lineDashed13: '–',
lineDashed14: '‐',
lineDashed15: '⁃',
lineVertical: '│',
lineVerticalBold: '┃',
lineVerticalDouble: '║',
lineVerticalDashed0: '┆',
lineVerticalDashed1: '┇',
lineVerticalDashed2: '┊',
lineVerticalDashed3: '┋',
lineVerticalDashed4: '╎',
lineVerticalDashed5: '╏',
lineVerticalDashed6: '╵',
lineVerticalDashed7: '╷',
lineVerticalDashed8: '╹',
lineVerticalDashed9: '╻',
lineVerticalDashed10: '╽',
lineVerticalDashed11: '╿',
lineDownLeft: '┐',
lineDownLeftArc: '╮',
lineDownBoldLeftBold: '┓',
lineDownBoldLeft: '┒',
lineDownLeftBold: '┑',
lineDownDoubleLeftDouble: '╗',
lineDownDoubleLeft: '╖',
lineDownLeftDouble: '╕',
lineDownRight: '┌',
lineDownRightArc: '╭',
lineDownBoldRightBold: '┏',
lineDownBoldRight: '┎',
lineDownRightBold: '┍',
lineDownDoubleRightDouble: '╔',
lineDownDoubleRight: '╓',
lineDownRightDouble: '╒',
lineUpLeft: '┘',
lineUpLeftArc: '╯',
lineUpBoldLeftBold: '┛',
lineUpBoldLeft: '┚',
lineUpLeftBold: '┙',
lineUpDoubleLeftDouble: '╝',
lineUpDoubleLeft: '╜',
lineUpLeftDouble: '╛',
lineUpRight: '└',
lineUpRightArc: '╰',
lineUpBoldRightBold: '┗',
lineUpBoldRight: '┖',
lineUpRightBold: '┕',
lineUpDoubleRightDouble: '╚',
lineUpDoubleRight: '╙',
lineUpRightDouble: '╘',
lineUpDownLeft: '┤',
lineUpBoldDownBoldLeftBold: '┫',
lineUpBoldDownBoldLeft: '┨',
lineUpDownLeftBold: '┥',
lineUpBoldDownLeftBold: '┩',
lineUpDownBoldLeftBold: '┪',
lineUpDownBoldLeft: '┧',
lineUpBoldDownLeft: '┦',
lineUpDoubleDownDoubleLeftDouble: '╣',
lineUpDoubleDownDoubleLeft: '╢',
lineUpDownLeftDouble: '╡',
lineUpDownRight: '├',
lineUpBoldDownBoldRightBold: '┣',
lineUpBoldDownBoldRight: '┠',
lineUpDownRightBold: '┝',
lineUpBoldDownRightBold: '┡',
lineUpDownBoldRightBold: '┢',
lineUpDownBoldRight: '┟',
lineUpBoldDownRight: '┞',
lineUpDoubleDownDoubleRightDouble: '╠',
lineUpDoubleDownDoubleRight: '╟',
lineUpDownRightDouble: '╞',
lineDownLeftRight: '┬',
lineDownBoldLeftBoldRightBold: '┳',
lineDownLeftBoldRightBold: '┯',
lineDownBoldLeftRight: '┰',
lineDownBoldLeftBoldRight: '┱',
lineDownBoldLeftRightBold: '┲',
lineDownLeftRightBold: '┮',
lineDownLeftBoldRight: '┭',
lineDownDoubleLeftDoubleRightDouble: '╦',
lineDownDoubleLeftRight: '╥',
lineDownLeftDoubleRightDouble: '╤',
lineUpLeftRight: '┴',
lineUpBoldLeftBoldRightBold: '┻',
lineUpLeftBoldRightBold: '┷',
lineUpBoldLeftRight: '┸',
lineUpBoldLeftBoldRight: '┹',
lineUpBoldLeftRightBold: '┺',
lineUpLeftRightBold: '┶',
lineUpLeftBoldRight: '┵',
lineUpDoubleLeftDoubleRightDouble: '╩',
lineUpDoubleLeftRight: '╨',
lineUpLeftDoubleRightDouble: '╧',
lineUpDownLeftRight: '┼',
lineUpBoldDownBoldLeftBoldRightBold: '╋',
lineUpDownBoldLeftBoldRightBold: '╈',
lineUpBoldDownLeftBoldRightBold: '╇',
lineUpBoldDownBoldLeftRightBold: '╊',
lineUpBoldDownBoldLeftBoldRight: '╉',
lineUpBoldDownLeftRight: '╀',
lineUpDownBoldLeftRight: '╁',
lineUpDownLeftBoldRight: '┽',
lineUpDownLeftRightBold: '┾',
lineUpBoldDownBoldLeftRight: '╂',
lineUpDownLeftBoldRightBold: '┿',
lineUpBoldDownLeftBoldRight: '╃',
lineUpBoldDownLeftRightBold: '╄',
lineUpDownBoldLeftBoldRight: '╅',
lineUpDownBoldLeftRightBold: '╆',
lineUpDoubleDownDoubleLeftDoubleRightDouble: '╬',
lineUpDoubleDownDoubleLeftRight: '╫',
lineUpDownLeftDoubleRightDouble: '╪',
lineCross: '╳',
lineBackslash: '╲',
lineSlash: '╱',
}
import * as unicodeSymbols from 'unicode-symbols'
import * as nonUnicodeSymbols from 'non-unicode-symbols'
const specialMainSymbols = {
tick: '✔',
info: 'ℹ',
warning: '⚠',
cross: '✘',
squareSmall: '◻',
squareSmallFilled: '◼',
circle: '◯',
circleFilled: '◉',
circleDotted: '◌',
circleDouble: '◎',
circleCircle: 'ⓞ',
circleCross: 'ⓧ',
circlePipe: 'Ⓘ',
radioOn: '◉',
radioOff: '◯',
checkboxOn: '☒',
checkboxOff: '☐',
checkboxCircleOn: 'ⓧ',
checkboxCircleOff: 'Ⓘ',
pointer: '❯',
triangleUpOutline: '△',
triangleLeft: '◀',
triangleRight: '▶',
lozenge: '◆',
lozengeOutline: '◇',
hamburger: '☰',
smiley: '㋡',
mustache: '෴',
star: '★',
play: '▶',
nodejs: '⬢',
oneSeventh: '⅐',
oneNinth: '⅑',
oneTenth: '⅒',
}
/** Unicode Symbols */
export const mainSymbols = unicodeSymbols
const specialFallbackSymbols = {
tick: '√',
info: 'i',
warning: '‼',
cross: '×',
squareSmall: '□',
squareSmallFilled: '■',
circle: '( )',
circleFilled: '(*)',
circleDotted: '( )',
circleDouble: '( )',
circleCircle: '(○)',
circleCross: '(×)',
circlePipe: '(│)',
radioOn: '(*)',
radioOff: '( )',
checkboxOn: '[×]',
checkboxOff: '[ ]',
checkboxCircleOn: '(×)',
checkboxCircleOff: '( )',
pointer: '>',
triangleUpOutline: '∆',
triangleLeft: '◄',
triangleRight: '►',
lozenge: '♦',
lozengeOutline: '◊',
hamburger: '≡',
smiley: '☺',
mustache: '┌─┐',
star: '✶',
play: '►',
nodejs: '♦',
oneSeventh: '1/7',
oneNinth: '1/9',
oneTenth: '1/10',
}
/** Non-Unicode Symbols */
export const fallbackSymbols = nonUnicodeSymbols
export const mainSymbols = { ...common, ...specialMainSymbols }
export const fallbackSymbols = { ...common, ...specialFallbackSymbols }
const shouldUseMain = isUnicodeSupported()
const figures = shouldUseMain ? mainSymbols : fallbackSymbols
/** Unicode or Non-Unicode Symbols based on Terminal Support */
const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols
export default figures
const replacements = Object.entries(specialMainSymbols)
// On terminals which do not support Unicode symbols, substitute them to other symbols
export const replaceSymbols = (string: string) => {
if (shouldUseMain) {
return string
}
for (const [key, mainSymbol] of replacements) {
string = string.replaceAll(mainSymbol, (fallbackSymbols as any)[key])
}
return string
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc