nobadfonts-cli 1.1.1 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/nobadfonts.js +3 -3
- package/package.json +2 -1
package/bin/nobadfonts.js
CHANGED
|
@@ -15,13 +15,13 @@ const command = args[0];
|
|
|
15
15
|
const targetFont = args[1];
|
|
16
16
|
|
|
17
17
|
if (!command) {
|
|
18
|
-
console.log(chalk.yellow('Usage: npx nobadfonts add <font-name>'));
|
|
18
|
+
console.log(chalk.yellow('Usage: npx nobadfonts-cli add <font-name>'));
|
|
19
19
|
process.exit(1);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
if (command === 'add') {
|
|
23
23
|
if (!targetFont) {
|
|
24
|
-
console.log(chalk.red('Please specify a font name. Example: npx nobadfonts add "Inter"'));
|
|
24
|
+
console.log(chalk.red('Please specify a font name. Example: npx nobadfonts-cli add "Inter"'));
|
|
25
25
|
process.exit(1);
|
|
26
26
|
}
|
|
27
27
|
addFont(targetFont);
|
|
@@ -50,7 +50,7 @@ async function listFonts() {
|
|
|
50
50
|
data.forEach(f => {
|
|
51
51
|
console.log(`${chalk.green('•')} ${chalk.white(f.name)} ${chalk.gray(`(${f.category})`)}`);
|
|
52
52
|
});
|
|
53
|
-
console.log('\nTo install: ' + chalk.yellow('npx nobadfonts add "Font Name"'));
|
|
53
|
+
console.log('\nTo install: ' + chalk.yellow('npx nobadfonts-cli add "Font Name"'));
|
|
54
54
|
|
|
55
55
|
} catch (e) {
|
|
56
56
|
spinner.fail('Error fetching fonts: ' + e.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nobadfonts-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "CLI tool to instantly install fonts from NoBadFonts",
|
|
5
5
|
"files": [
|
|
6
6
|
"bin/nobadfonts.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"preferGlobal": true,
|
|
12
12
|
"bin": {
|
|
13
|
+
"nobadfonts-cli": "bin/nobadfonts.js",
|
|
13
14
|
"nobadfonts": "bin/nobadfonts.js"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|