Giter Site home page Giter Site logo

tipccjs / tipcc.js Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 691 KB

The complete tip.cc API client for Node.js

Home Page: https://tipccjs.org/

License: MIT License

TypeScript 99.56% CSS 0.44%
bitcoin blockchain cryptocurrency ethereum tipcc tipcc-api

tipcc.js's People

Contributors

dependabot[bot] avatar walledgarden avatar zerowave022 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

tipcc.js's Issues

Add proper README and tutorials

There are some documentation improvements which need to be made:

  • Add a README
  • Add an introduction and/or getting started page

Format Amount

This feature would give library users the option to format a tip in the currently know tip.cc format by calling a function in the amount class. Preferably, at client initalization there is a new option, which allows to pass a currencies-emojis map to the client, which would be used for this feature too (ex. BTC => <BTC:12312312312312312>...). The format for tips would be as follows

<#Amount>.toString(withUsd defaults to true)

<emojiName:emojiId> currencyAmount currencySymbol (โ‰ˆ $usdValue)
currencyAmount would represent the this.humanValue.toFixed(currency.format.scale)

File structure

Reordering the files in a standard structure following compareable API wrappers improves the quality of the code and helps other developers to understand the code better.

Make documentation easier to understand

The documentation needs an overhaul, so it is easy to understand. This will involve making names shorter, changing the order of items being displayed and so on.
Closing this issue will require changing the exports on the library in a way that renders well on Typedoc.
This will also make the project more organized in general.

Converting currency amounts to USD value natively

This feature would improve the quality of the library, because people would have a native function in the Amount class which would convert the amount in the USD value by using the cached currencies.

<#Amount>.toFiat(fiatCurrency defaults to USD)

Add Prettier for code formatting

While everyone has their own coding style, using one code formatter with a configuration file will make sure everyone is following one code style.

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.