Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jkga/is-web-monetized
A very simple tool for checking if Web Monetization is enabled
https://github.com/jkga/is-web-monetized
gftwhackaton monetization tool web-monetization
Last synced: 29 days ago
JSON representation
A very simple tool for checking if Web Monetization is enabled
- Host: GitHub
- URL: https://github.com/jkga/is-web-monetized
- Owner: jkga
- License: mit
- Created: 2020-05-12T10:16:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-21T04:55:39.000Z (6 months ago)
- Last Synced: 2024-10-03T06:37:46.012Z (2 months ago)
- Topics: gftwhackaton, monetization, tool, web-monetization
- Language: JavaScript
- Size: 83 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-web-monetization - Is web monetized - A very simple tool for checking if Web Monetization is enabled. (Resources / Tools)
README
# :money_with_wings: is-web-monetized
A very simple tool for checking if web monetization is enabled on a certain website[![JavaScript Style Guide](https://img.shields.io/badge/Code%20Style-Standard%20-green?style=for-the-badge&logo=javascript)](https://github.com/standard/standard)
## 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](https://user-images.githubusercontent.com/10413754/81672858-5a001880-947d-11ea-8721-1b0396db9b35.png)](webmonetization.org)
### Official Website: https://webmonetization.org/
### Specifications: https://webmonetization.org/specification.html
## Installation
```javascript
npm install is-web-monetized
```## Usage
You can check if the website uses the Web Monetization API without going to the website.
> :bulb: Node module MUST be installed globally
```javascript
npm install is-web-monetized -g
```
In your terminal, run `monetized [URL]`
```bash
monetized example.com
```
or using as a dependency
```javascript
const { isWebMonetized } from 'is-web-monetized'
const url = 'example.com'isWebMonetized(url).then(obj => {
/*
{
monetized ,
url ,
content ,
}
*/
console.log(obj)
}).catch(err => console.log(err))
```## Support
Do you think this is cool? don't hesitate to buy me some coffee!