Skip to content

Commit 480a140

Browse files
committed
chore: bump dependencies
1 parent f96a58e commit 480a140

File tree

10 files changed

+883
-1148
lines changed

10 files changed

+883
-1148
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ dist
22
node_modules
33
yarn-error.log
44
package-lock.json
5-
5+
*.csv
66
.vscode

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
yarn run precommit

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ $ crypto bitcoin
3030

3131
## Flags
3232

33-
| Name | Description |
34-
| ------------------------ | ------------------------------------------- |
35-
| `--price-change`, `--pc` | Coin price change (%) in the past 24 hours |
36-
| `--volume`, `--v` | Coin volume in the past 24 hours |
37-
| `--ath-change`, `--athc` | Percent price change from the all time high |
38-
| `--high`, `--h` | Highest price sold in the past 24 hours |
39-
| `--low`, `--l` | Lowest price sold in the past 24 hours |
40-
| `--ath` | Coin all time high price |
41-
| `--save json,csv` | Save coin data via JSON and/or CSV |
42-
| `--help` | Flag description and usage examples |
43-
| `--version` | Current version |
33+
| Name | Description |
34+
| ----------------------- | ------------------------------------------- |
35+
| `--price-change`, `-pc` | Coin price change (%) in the past 24 hours |
36+
| `--volume`, `-v` | Coin volume in the past 24 hours |
37+
| `--ath-change`, `-athc` | Percent price change from the all time high |
38+
| `--high`, `-h` | Highest price sold in the past 24 hours |
39+
| `--low`, `-l` | Lowest price sold in the past 24 hours |
40+
| `--ath` | Coin all time high price |
41+
| `--save json,csv` | Save coin data via JSON and/or CSV |
42+
| `--help` | Flag description and usage examples |
43+
| `--version` | Current version |
4444

4545
## Local Development
4646

eslint.config.mjs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
3+
import tsParser from "@typescript-eslint/parser";
4+
import path from "node:path";
5+
import { fileURLToPath } from "node:url";
6+
import js from "@eslint/js";
7+
import { FlatCompat } from "@eslint/eslintrc";
8+
9+
const __filename = fileURLToPath(import.meta.url);
10+
const __dirname = path.dirname(__filename);
11+
const compat = new FlatCompat({
12+
baseDirectory: __dirname,
13+
recommendedConfig: js.configs.recommended,
14+
allConfig: js.configs.all
15+
});
16+
17+
export default defineConfig([globalIgnores(["**/dist/", "**/coverage/", "**/node_modules/"]), {
18+
extends: compat.extends(
19+
"eslint:recommended",
20+
"plugin:@typescript-eslint/eslint-recommended",
21+
"plugin:@typescript-eslint/recommended",
22+
),
23+
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
languageOptions: {
29+
parser: tsParser,
30+
},
31+
}]);

package.json

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,37 @@
2020
"build": "tsc",
2121
"test": "mocha 'src/*.test.ts'",
2222
"lint": "eslint --fix",
23-
"prepare": "husky install",
23+
"prepare": "husky",
2424
"precommit": "lint-staged"
2525
},
2626
"engines": {
27-
"node": ">=14"
27+
"node": ">=22"
2828
},
2929
"type": "module",
3030
"dependencies": {
3131
"@crypto-coffee/coingecko-api": "^1.2.0",
32-
"@json2csv/node": "^7.0.5",
33-
"chalk": "^5.3.0",
34-
"meow": "^11.0.0"
32+
"@json2csv/node": "^7.0.6",
33+
"chalk": "^5.4.1",
34+
"meow": "^13.2.0"
3535
},
3636
"devDependencies": {
37-
"@types/chai": "^4.3.4",
38-
"@types/mocha": "^10.0.1",
39-
"@types/node": "^20.6.0",
40-
"@typescript-eslint/eslint-plugin": "^6.13.1",
41-
"@typescript-eslint/parser": "^6.13.1",
42-
"chai": "^4.3.8",
43-
"eslint": "^8.49.0",
44-
"execa": "^8.0.1",
45-
"husky": "^8.0.3",
46-
"lint-staged": "^14.0.1",
47-
"mocha": "^10.2.0",
48-
"prettier": "^3.0.3",
49-
"rimraf": "^4.3.0",
50-
"ts-node": "^10.9.1",
51-
"typescript": "^5.2.2"
37+
"@eslint/eslintrc": "^3.3.1",
38+
"@eslint/js": "^9.23.0",
39+
"@types/chai": "^5.2.1",
40+
"@types/mocha": "^10.0.10",
41+
"@types/node": "^22.13.14",
42+
"@typescript-eslint/eslint-plugin": "^8.28.0",
43+
"@typescript-eslint/parser": "^8.28.0",
44+
"chai": "^5.2.0",
45+
"eslint": "^9.23.0",
46+
"execa": "^9.5.2",
47+
"husky": "^9.1.7",
48+
"lint-staged": "^15.5.0",
49+
"mocha": "^11.1.0",
50+
"prettier": "^3.5.3",
51+
"rimraf": "^6.0.1",
52+
"ts-node": "^10.9.2",
53+
"typescript": "^5.8.2"
5254
},
5355
"lint-staged": {
5456
"*.ts": [

src/actions/saveCoinData.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const writeFile = async (
6969
const formatCsvFile = async (coin: Partial<CoinMarkets>): Promise<string> => {
7070
const parser = new AsyncParser({
7171
delimiter: ',',
72-
excelStrings: false,
7372
fields: [
7473
{
7574
label: 'Name',

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,26 @@ const cli = meow(
3939
flags: {
4040
priceChange: {
4141
type: 'boolean',
42-
alias: 'pc'
42+
shortFlag: 'pc'
4343
},
4444
volume: {
4545
type: 'boolean',
46-
alias: 'v'
46+
shortFlag: 'v'
4747
},
4848
high: {
4949
type: 'boolean',
50-
alias: 'h'
50+
shortFlag: 'h'
5151
},
5252
low: {
5353
type: 'boolean',
54-
alias: 'l'
54+
shortFlag: 'l'
5555
},
5656
ath: {
5757
type: 'boolean'
5858
},
5959
athChange: {
6060
type: 'boolean',
61-
alias: 'athc'
61+
shortFlag: 'athc'
6262
},
6363
save: {
6464
type: 'string'

0 commit comments

Comments
 (0)