Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

payowl

Detect websites protected by paywall applications.

Install

npm install payowl

Usage

Basic

const PayOwl = require('payowl');

const payowl = new PayOwl();
const provider = await payowl.detect('http://example.com');
console.log(provider); // Paywall provider name or null if no paywall was found

Advanced

const PayOwl = require('payowl');

const cacheProvider = {
  async init() {
    // IMPL
  },
  async get() {
    // IMPL
  },
  async set() {
    // IMPL
  },
};

const payowl = await PayOwl.createInstance(cacheProvider);
const provider = await payowl.detect('http://example.com');
console.log(provider); // Paywall provider name or null if no paywall was found

About

Detect websites protected by paywall applications

Topics

Resources

Packages

No packages published
You can’t perform that action at this time.