Skip to content

A very simple tool for checking if Web Monetization is enabled

License

Notifications You must be signed in to change notification settings

jkga/is-web-monetized

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💸 is-web-monetized

A very simple tool for checking if web monetization is enabled on a certain website

JavaScript Style Guide

What is Web Monetization ?

Web Monetization is an API that allows websites to request small payments from users facilitated by the browser and the user's Web Monetization provider.

webmonetization.org

Installation

  npm install is-web-monetized

Usage

You can check if the website uses the Web Monetization API without going to the website.

💡 Node module MUST be installed globally

  npm install is-web-monetized -g

In your terminal, run monetized [URL]

  monetized example.com 

or using as a dependency

  const { isWebMonetized } from 'is-web-monetized'
  const url = 'example.com'

  isWebMonetized(url).then(obj => {
    /*
      {
        monetized <boolean>,
        url <url>,
        content <wallet>,
      }
    */
    console.log(obj)
  }).catch(err => console.log(err))

Support

Do you think this is cool? don't hesitate to buy me some coffee!

Buy Me A Coffee

About

A very simple tool for checking if Web Monetization is enabled

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published