Comparing version 4.0.0 to 4.1.0
@@ -6,2 +6,3 @@ #!/usr/bin/env node | ||
const ora = require('ora') | ||
const updateNotifier = require('update-notifier') | ||
@@ -35,2 +36,4 @@ const pkg = require('./package.json') | ||
const spinner = ora('Fetching exchange data..').start() | ||
let opts = { | ||
@@ -44,5 +47,9 @@ amount: argv[0] || 1, | ||
.then(result => { | ||
spinner.stop() | ||
console.log(`${opts.amount} ${opts.from} = ${result} ${opts.to}`) | ||
}) | ||
.catch(err => { | ||
spinner.stop() | ||
console.log(err) | ||
@@ -49,0 +56,0 @@ |
{ | ||
"name": "currency", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "simple currency conversion cli", | ||
@@ -24,2 +24,3 @@ "main": "index.js", | ||
"money": "0.2.0", | ||
"ora": "1.3.0", | ||
"update-notifier": "2.2.0" | ||
@@ -26,0 +27,0 @@ }, |
@@ -5,2 +5,4 @@ # currency [![Build Status](http://img.shields.io/travis/srn/currency.svg?style=flat-square)](https://travis-ci.org/srn/currency) | ||
![screenshot.gif](screenshot.gif) | ||
## Install | ||
@@ -42,8 +44,4 @@ | ||
## API | ||
## License | ||
MIT © [Søren Brokær](http://srn.io) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
244803
9
216
0
4
46
+ Addedora@1.3.0
+ Addedcli-cursor@2.1.0(transitive)
+ Addedcli-spinners@1.3.1(transitive)
+ Addedlog-symbols@1.0.2(transitive)
+ Addedmimic-fn@1.2.0(transitive)
+ Addedonetime@2.0.1(transitive)
+ Addedora@1.3.0(transitive)
+ Addedrestore-cursor@2.0.0(transitive)