Socket
Socket
Sign inDemoInstall

coffee-crypto-cli

Package Overview
Dependencies
71
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1-canary-0f36bf5.0

5

dist/actions/saveCoinData.js
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();
};

2

dist/index.js

@@ -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) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc