fylzap 1.1.0 → 1.1.2
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/README.md +1 -1
- package/dist/utils/config.js +2 -2
- package/dist/utils/formatter.js +2 -0
- package/package.json +1 -1
- package/src/utils/config.ts +2 -2
- package/src/utils/formatter.ts +2 -0
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npx fylzap document.pdf
|
|
|
11
11
|
|
|
12
12
|
## Setup
|
|
13
13
|
|
|
14
|
-
Get your API key from [
|
|
14
|
+
Get your API key from [fylzap.com/dashboard](https://fylzap.com/dashboard), then:
|
|
15
15
|
```bash
|
|
16
16
|
fylzap config --key fc_live_your_key_here
|
|
17
17
|
```
|
package/dist/utils/config.js
CHANGED
|
@@ -12,7 +12,7 @@ const conf_1 = __importDefault(require("conf"));
|
|
|
12
12
|
const config = new conf_1.default({
|
|
13
13
|
projectName: "fylzap",
|
|
14
14
|
defaults: {
|
|
15
|
-
apiUrl: "https://
|
|
15
|
+
apiUrl: "https://fylzap.com",
|
|
16
16
|
},
|
|
17
17
|
});
|
|
18
18
|
function getApiKey() {
|
|
@@ -22,7 +22,7 @@ function setApiKey(key) {
|
|
|
22
22
|
config.set("apiKey", key);
|
|
23
23
|
}
|
|
24
24
|
function getApiUrl() {
|
|
25
|
-
return process.env.FYLZAP_API_URL ?? config.get("apiUrl") ?? "https://
|
|
25
|
+
return process.env.FYLZAP_API_URL ?? config.get("apiUrl") ?? "https://fylzap.com";
|
|
26
26
|
}
|
|
27
27
|
function setApiUrl(url) {
|
|
28
28
|
config.set("apiUrl", url);
|
package/dist/utils/formatter.js
CHANGED
|
@@ -14,6 +14,8 @@ const path_1 = __importDefault(require("path"));
|
|
|
14
14
|
const fs_1 = __importDefault(require("fs"));
|
|
15
15
|
function printBanner() {
|
|
16
16
|
console.log(chalk_1.default.bold.blue("\n fylzap") + chalk_1.default.gray(" — file converter CLI"));
|
|
17
|
+
console.log(chalk_1.default.gray(" ─────────────────────────────"));
|
|
18
|
+
console.log(chalk_1.default.gray(" Get your free API key at: ") + chalk_1.default.cyan("https://fylzap.com"));
|
|
17
19
|
console.log(chalk_1.default.gray(" ─────────────────────────────\n"));
|
|
18
20
|
}
|
|
19
21
|
function printSuccess(inputFile, outputFile, ms) {
|
package/package.json
CHANGED
package/src/utils/config.ts
CHANGED
|
@@ -8,7 +8,7 @@ interface FylzapConfig {
|
|
|
8
8
|
const config = new Conf<FylzapConfig>({
|
|
9
9
|
projectName: "fylzap",
|
|
10
10
|
defaults: {
|
|
11
|
-
apiUrl: "https://
|
|
11
|
+
apiUrl: "https://fylzap.com",
|
|
12
12
|
},
|
|
13
13
|
});
|
|
14
14
|
|
|
@@ -21,7 +21,7 @@ export function setApiKey(key: string): void {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export function getApiUrl(): string {
|
|
24
|
-
return process.env.FYLZAP_API_URL ?? config.get("apiUrl") ?? "https://
|
|
24
|
+
return process.env.FYLZAP_API_URL ?? config.get("apiUrl") ?? "https://fylzap.com";
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export function setApiUrl(url: string): void {
|
package/src/utils/formatter.ts
CHANGED
|
@@ -4,6 +4,8 @@ import fs from "fs";
|
|
|
4
4
|
|
|
5
5
|
export function printBanner() {
|
|
6
6
|
console.log(chalk.bold.blue("\n fylzap") + chalk.gray(" — file converter CLI"));
|
|
7
|
+
console.log(chalk.gray(" ─────────────────────────────"));
|
|
8
|
+
console.log(chalk.gray(" Get your free API key at: ") + chalk.cyan("https://fylzap.com"));
|
|
7
9
|
console.log(chalk.gray(" ─────────────────────────────\n"));
|
|
8
10
|
}
|
|
9
11
|
|