npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

thor-calculator

v0.1.7

Published

A CLI tool to check your VeThor generation rate (For Vechain blockchain)

Downloads

15

Readme

Thor Calculator

This is a small package calculating thor generation rate based on

installation

Install from NPM

$ npm i thor-calculator -g    // for CLI tool
$ npm i thor-calculator -save // for node_modules usage

Install from yarn

$ yarn add thor-calculator

Demo

Usage

Use it in CLI

$ thor <your VET amount> <X node status(true/false - default to false)>
$ thor 1550000 true     // sample, is X Node
$ thor 3450000 false    // sample, is not X Node
$ thor 1235000          // sample, default is not X Node

Note you can also use Million(M) shorthand

$ thor 1.55M true

Sample Respond

⡏ calculating...

╔═══════════════╤═══════════════════════╤═══════════════════════════════════════════════════════╗
║ VET Amount    │ 1550000 VET($12074.5) │                                                       ║
╟───────────────┼───────────────────────╢                                                       ║
║ Node Type     │ VeThor X Node         │                                                       ║
╟───────────────┼───────────────────────┼───────────────────────────╤───────────────────────────╢
║ Generation    │ 898.05355620 vtho/day │ 26941.60668600 vtho/month │ 327789.54801296 vtho/year ║
╟───────────────┼───────────────────────┼───────────────────────────┼───────────────────────────╢
║ Profits       │ $1.542/day            │ $46.254/month             │ $562.762/year             ║
╟───────────────┼───────────────────────┼───────────────────────────╧───────────────────────────╢
║ Annual Return │ 4.66%                 │                                                       ║
╚═══════════════╧═══════════════════════╧═══════════════════════════════════════════════════════╝
> VET's current price at $0.00779 on LBank
> VTHO's current price at $0.00171684 on LBank
> resource: https://github.com/VechainCommunity/thor-calculator
> current time: 2018-8-15 18:52:00

Use it as a Nodejs Module(sample code)

snippets

const thorCalculator = require('./index');
const info = thorCalculator(1000000, false);
console.log(info);

print out

{ 
  user: { 
     amount: 1000000,
     is_x_node: false,
     node_config: {},
     node_type: 'Strength Node',
     thor_generation_rate_per_vet: 0.0008605594405594406,
     thor_amount_per_day: 860.5594405594406 
  },
  blockain: { 
     nodes: { 
        Mjolnir_Nodes_Number: 200,
        Thunder_Nodes_Number: 300,
        Strnegth_Nodes_Number: 1000,
        Vethor_Nodes_Number: 2000 
     },
     baseRate: 0.0004405594405594406 
  } 
}

Author

Amazingandyyy

License

MIT

Help

  • PR
  • issues
  • stars
  • forks