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

bitcoin-utility-belt

v2.3.6

Published

Bitcoin Utility Belt is a client-side Bitcoin JavaScript library

Downloads

21

Readme

Bitcoin Utility Belt

NPM NPM js-standard-style

I've made this project to make easy to use a lot of Bitcoin functions that you need to build a website or a NodeJS application. You can read the examples to find out how to use it! Feel free to contribute with code or a donation!

Readme Index

NodeJS Installation

You just need to install the npm package to your project.

npm install bitcoin-utility-belt --save

Here is an example:

// import bitcoin utility belt
let belt = require("bitcoin-utility-belt");

// creating random wallets
// type: P2PK (default)
let wallet = belt.wallet.create();
console.log(wallet);

Browser Installation

You just need to import the /dist/bitcoin-utility-belt.js to your HTML to have access to the functions.
Here is an example:

<!-- Importing Bitcoin Utility Belt script -->
<script src="../../dist/bitcoin-utility-belt.min.js"></script>
<script>
  // creating random wallets
  // type: P2PK (default)
  var wallet = belt.wallet.create();
  console.log(wallet);
</script>

How to compile a new browser version

You have already a compiled version in the directory /dist (extended and minified files).
But if you want to compile for your self run the script:

npm run build

Functions

The list below should be very easy to understand. Some of them interact (via HTTPS) with a 3rd Party Blockchain Provider (3PBP). I've made HTML and NodeJS examples, so you can understand how it works!

Blockchain (3PBP)

Messages

Wallets

Examples

Contributing

I'll be glad to receive new pull requests to improve this project! Feel free to contribute!

Donate BTC

If you really liked the project and want to donate, here is the official wallet for this project.
Official Wallet: 18kXMmrDtgfeQgVmwfmygTaYLyQuVS4chK

LICENSE MIT