Comparing version 3.0.0 to 3.1.0
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -12,0 +12,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -30,2 +30,6 @@ * @repository https://github.com/dominikwilkowski/cfonts | ||
flatOptions[flatOptions[option].short] = flatOptions[option]; | ||
if (flatOptions[option].fallback_shortcut) { | ||
flatOptions[flatOptions[option].fallback_shortcut] = flatOptions[option]; | ||
} | ||
}); | ||
@@ -32,0 +36,0 @@ return flatOptions; |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -113,2 +113,3 @@ * @repository https://github.com/dominikwilkowski/cfonts | ||
short: '-v', | ||
fallback_shortcut: '-V', | ||
default: false | ||
@@ -120,2 +121,3 @@ }, | ||
short: '-h', | ||
fallback_shortcut: false, | ||
default: false | ||
@@ -127,2 +129,3 @@ }, | ||
short: '-f', | ||
fallback_shortcut: false, | ||
options: Object.keys(FONTFACES).map(color => FONTFACES[color]), | ||
@@ -135,2 +138,3 @@ default: 'block' | ||
short: '-c', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -143,2 +147,3 @@ default: 'system' | ||
short: '-b', | ||
fallback_shortcut: false, | ||
options: Object.keys(BGCOLORS).map(color => BGCOLORS[color]), | ||
@@ -151,2 +156,3 @@ default: 'transparent' | ||
short: '-a', | ||
fallback_shortcut: false, | ||
options: ALIGNMENT, | ||
@@ -159,2 +165,3 @@ default: 'left' | ||
short: '-l', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -167,2 +174,3 @@ default: undefined | ||
short: '-z', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -175,2 +183,3 @@ default: undefined | ||
short: '-s', | ||
fallback_shortcut: false, | ||
default: false | ||
@@ -182,2 +191,3 @@ }, | ||
short: '-m', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -190,2 +200,3 @@ default: 0 | ||
short: '-g', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -198,2 +209,3 @@ default: false | ||
short: '-i', | ||
fallback_shortcut: false, | ||
default: false | ||
@@ -205,2 +217,3 @@ }, | ||
short: '-t', | ||
fallback_shortcut: false, | ||
default: false | ||
@@ -212,2 +225,3 @@ }, | ||
short: '-e', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -220,2 +234,3 @@ default: 'node' | ||
short: '-d', | ||
fallback_shortcut: false, | ||
default: false | ||
@@ -227,2 +242,3 @@ }, | ||
short: '-x', | ||
fallback_shortcut: false, | ||
options: true, | ||
@@ -229,0 +245,0 @@ default: 1 |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -48,14 +48,16 @@ * @repository https://github.com/dominikwilkowski/cfonts | ||
}); | ||
const args = inputArgs.splice(3); // the first two are node specific, the third is our text | ||
if (inputArgs[2] === '--help' || inputArgs[2] === '-h') { | ||
parsedArgs.help = true; | ||
} | ||
const options = AddShortcuts(inputOptions); | ||
const version_options = options['-v']; | ||
if (inputArgs[2] === '--version' || inputArgs[2] === '-v') { | ||
if (inputArgs[2] === version_options._name || inputArgs[2] === version_options.short || inputArgs[2] === version_options.fallback_shortcut) { | ||
parsedArgs.version = true; | ||
} | ||
const args = inputArgs.splice(3); // the first two are node specific, the third is our text | ||
const help_options = options['-h']; | ||
const options = AddShortcuts(inputOptions); | ||
if (inputArgs[2] === help_options._name || inputArgs[2] === help_options.short || inputArgs[2] === help_options.fallback_shortcut) { | ||
parsedArgs.help = true; | ||
} | ||
@@ -62,0 +64,0 @@ for (let index = 0; args.length > index; index++) { |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
@@ -7,3 +7,3 @@ /*************************************************************************************************************************************************************** | ||
* | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPLv3 | ||
* @license https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE GNU GPL-3.0-or-later | ||
* @author Dominik Wilkowski hi@dominik-wilkowski.com | ||
@@ -10,0 +10,0 @@ * @repository https://github.com/dominikwilkowski/cfonts |
{ | ||
"name": "cfonts", | ||
"description": "Sexy fonts for the console", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"homepage": "https://github.com/dominikwilkowski/cfonts", | ||
@@ -128,7 +128,7 @@ "author": { | ||
{ | ||
"type": "GPL-3.0", | ||
"type": "GPL-3.0-or-later", | ||
"url": "https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE" | ||
} | ||
], | ||
"license": "GPL-3.0" | ||
"license": "GPL-3.0-or-later" | ||
} |
@@ -10,5 +10,5 @@ ```sh | ||
![cfont styles](./img/example1.png) | ||
![cfont styles](https://raw.githubusercontent.com/dominikwilkowski/cfonts/released/img/example1.png) | ||
<p align="center"><img src="./img/example2.png" alt="api example"></p> | ||
<p align="center"><img src="https://raw.githubusercontent.com/dominikwilkowski/cfonts/released/img/example2.png" alt="api example"></p> | ||
<p align="center"> | ||
@@ -83,3 +83,3 @@ <a href="https://github.com/dominikwilkowski/cfonts/actions/workflows/testing.yml"><img src="https://github.com/dominikwilkowski/cfonts/actions/workflows/testing.yml/badge.svg" alt="build status"></a> | ||
Read more in the [root repo](../). | ||
Read more in the [root repo](https://github.com/dominikwilkowski/cfonts). | ||
@@ -167,2 +167,3 @@ | ||
* 3.1.0 - Added support for -V flag fallback | ||
* 3.0.0 - Added rust library port, aligned APIs, added hex background colors, fixed minor alignment bugs, updated license from GPLv2 to GPLv3 | ||
@@ -235,2 +236,2 @@ * 2.10.1 - bumped dependencies | ||
Copyright (c) 2022 Dominik Wilkowski. | ||
Licensed under the [GNU GPLv3](https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE). | ||
Licensed under the [GNU GPL-3.0-or-later](https://github.com/dominikwilkowski/cfonts/blob/released/LICENSE). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
270869
8658
234