coffee-crypto-cli
Advanced tools
Comparing version 2.0.0 to 2.0.1-canary-0f36bf5.0
import fs from 'fs'; | ||
import { parseAsync } from 'json2csv'; | ||
import { AsyncParser } from '@json2csv/node'; | ||
import { formatFileName, logError, logSuccess } from '../utils.js'; | ||
@@ -40,3 +40,3 @@ import { CSVEXT, JSONEXT } from '../constants.js'; | ||
const formatCsvFile = async (coin) => { | ||
return await parseAsync(coin, { | ||
const parser = new AsyncParser({ | ||
delimiter: ',', | ||
@@ -79,2 +79,3 @@ excelStrings: false, | ||
}); | ||
return await parser.parse(coin).promise(); | ||
}; |
@@ -65,3 +65,3 @@ #!/usr/bin/env node | ||
const { save } = cli.flags; | ||
const coinTickers = cli.input[0]; | ||
const coinTickers = cli.input[0].toLowerCase().trim(); | ||
if (!coinTickers) { | ||
@@ -68,0 +68,0 @@ logError('No coin name provided. Check `crypto --help` for help'); |
{ | ||
"name": "coffee-crypto-cli", | ||
"version": "2.0.0", | ||
"version": "2.0.1-canary-0f36bf5.0", | ||
"description": "Cryptocurrency CLI price tool", | ||
@@ -32,4 +32,4 @@ "main": "dist/index.js", | ||
"@crypto-coffee/coingecko-api": "^1.2.0", | ||
"@json2csv/node": "^7.0.5", | ||
"chalk": "^5.3.0", | ||
"json2csv": "^6.0.0-alpha.2", | ||
"meow": "^11.0.0" | ||
@@ -39,3 +39,2 @@ }, | ||
"@types/chai": "^4.3.4", | ||
"@types/json2csv": "^5.0.3", | ||
"@types/mocha": "^10.0.1", | ||
@@ -42,0 +41,0 @@ "@types/node": "^20.6.0", |
import fs from 'fs' | ||
import { parseAsync } from 'json2csv' | ||
import { AsyncParser } from '@json2csv/node' | ||
import { formatFileName, logError, logSuccess } from '../utils.js' | ||
@@ -70,3 +70,3 @@ import { CSVEXT, JSONEXT } from '../constants.js' | ||
const formatCsvFile = async (coin: Partial<CoinMarkets>): Promise<string> => { | ||
return await parseAsync(coin, { | ||
const parser = new AsyncParser({ | ||
delimiter: ',', | ||
@@ -109,2 +109,3 @@ excelStrings: false, | ||
}) | ||
return await parser.parse(coin).promise() | ||
} |
@@ -72,3 +72,3 @@ #!/usr/bin/env node | ||
const { save } = cli.flags as Flags | ||
const coinTickers = cli.input[0] | ||
const coinTickers = cli.input[0].toLowerCase().trim() | ||
@@ -75,0 +75,0 @@ if (!coinTickers) { |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30810
15
732
0
1
+ Added@json2csv/node@^7.0.5
+ Added@json2csv/formatters@7.0.6(transitive)
+ Added@json2csv/node@7.0.6(transitive)
+ Added@json2csv/plainjs@7.0.6(transitive)
+ Added@streamparser/json@0.0.20(transitive)
- Removedjson2csv@^6.0.0-alpha.2
- Removed@streamparser/json@0.0.6(transitive)
- Removedcommander@6.2.1(transitive)
- Removedjson2csv@6.0.0-alpha.2(transitive)
- Removedlodash.get@4.4.2(transitive)