Giter Site home page Giter Site logo

crypti / eth-price Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 4.0 52 KB

:dizzy: A CLI app to grab the current ETH price from your terminal in USD and/or other cryptocurrency symbols

License: MIT License

JavaScript 100.00%
cli crypto-price cryptocurrency eth ethereum node

eth-price's People

Contributors

brh55 avatar radiovisual avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

eth-price's Issues

Popsicle + nock is breaking the tests?

Not sure why, but it seems the build error is coming from popsicle and nock. Popsicle allows the application to run just fine, but it gets in the way of the tests for some reason.

I have a branch where I switched popsicle out for isomorphic-fetch, and the build is running perfectly, with the tests passing.

If you don't have a preference for popsicle, and you don't mind using isomorphic-fetch, this PR fixes things (and increases code coverage to 100%).

Here is the error coming from the test run:

<--- Last few GCs --->

   83320 ms: Mark-sweep 1308.9 (1436.1) -> 1303.6 (1436.1) MB, 763.1 / 0.0 ms [allocation failure] [GC in old space requested].
   84087 ms: Mark-sweep 1303.6 (1436.1) -> 1303.6 (1436.1) MB, 767.0 / 0.0 ms [allocation failure] [GC in old space requested].
   85077 ms: Mark-sweep 1303.6 (1436.1) -> 1311.3 (1411.1) MB, 989.4 / 0.0 ms [last resort gc].
   86036 ms: Mark-sweep 1311.3 (1411.1) -> 1319.1 (1411.1) MB, 958.9 / 0.0 ms [last resort gc].


<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x292fa58cfb51 
    1: emitError(aka emitError) [/Users/michael/forks/eth-price/node_modules/nock/lib/request_overrider.js:~205] [pc=0x3cca160f95d2] (this=0x292fa5804381 ,error=0x1bd4c41de3d9 )
    2: abort [/Users/michael/forks/eth-price/node_modules/nock/lib/request_overrider.js:185] [pc=0x3cca164f0eef] (this=0x136f25638449 , v8::Local) [/usr/local/bin/node]
 3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
 4: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/local/bin/node]
 5: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
 6: 0x3cca15f079a7
 7: 0x3cca160f95d2

  1 exception

  โœ– test.js exited due to SIGABRT

----------|----------|----------|----------|----------|----------------|
File      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
----------|----------|----------|----------|----------|----------------|
All files |  Unknown |  Unknown |  Unknown |  Unknown |                |
----------|----------|----------|----------|----------|----------------|

npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "test"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test: `xo && nyc ava`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] test script 'xo && nyc ava'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the eth-price package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     xo && nyc ava
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs eth-price
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls eth-price
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/michael/forks/eth-price/npm-debug.log

whitespace breaks the currency list

If you type a space in the comma-delimited list of currencies, the currencies listed before the space are ignored:

image

The same list without a space:

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.