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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lotodobicho-prizes

v1.0.12

Published

Algorithm to obtain lotodobicho draw's prizes

Downloads

5

Readme

Lotodobicho

Installation:

npm install lotodobicho-prizes

Use:

This service allows you to obtain the prizes of the draws of the https://lotodobicho.com application based on the HASH of the Bitcoin immediately after the date and time established for a draw.

For this purpose, the 128-bit Hash obtained in the previous draw (prevHash) is used. (In the first draw use '' as prevHash).

For example this 128 bits hash belong previous draw: d57cbd9ef56e9bc773c9ad93a2131d2e3ab64acf54ed1466da21efdd145b243
28cbd85971335a926ab9f3fd66a15c334973984fa7dbdbacfa6688b8078a9a65d

Hash (64 bits) of the Bitcoin corresponding to timestamp 161313249616000 (hash): 0000000000000000000b1447caf58d6d13ff4afee003c06fcb1edb30e159580d

Example found on dir ./example/test.ts

import { Observable } from "rxjs";
import { map } from "rxjs/operators";
import {
  GetBitcoinHash,
  PrizesService,
  IPrizes,
  IBlock,
} from "lotodobicho-prizes";

const getBitcoinHash = new GetBitcoinHash();
const prizesService = new PrizesService();
export const getDrawPrizes = (
  ts_draw: number,
  prevDrawHash: string
): Observable<IPrizes> => {
  return getBitcoinHash.getNextBitcoinHashOfTimestamp(ts_draw).pipe(
    map((block: IBlock) => prizesService.init(block.hash, prevDrawHash)),
    tap(console.log)
  );
};
const prevDrawHash =
  "d57cbd9ef56e9bc773c9ad93a2131d2e3ab64acf54ed1466da21efdd145  b24328cbd85971335a926ab9f3fd66a15c334973984fa7dbdbacfa6688b8078a9a65d";

const ts_draw = 1613249610000;
getDrawPrizes(ts_draw, prevDrawHash).subscribe();
  1. 3267
  2. 9284
  3. 6640
  4. 2036
  5. 5574
  • Modern 6801
  • River 330
  • Skipped 17
  • Refund 1

You can also get the hash corresponding to this draw

console.log(prizesService.drawHash);

53a88ea66279eedacb1a4015b8a9fc7a59c577f3425161127a2f8eb2db0dab68b
5be60cb29b167ec1df53e5c273f9b6eba002467f13005f2800f0446fed038a7