payowl

0.0.1-ALPHA • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i payowl

Weekly Downloads

0

Version

0.0.1-ALPHA

License

BSD-3-Clause

Unpacked Size

9.7 kB

Total Files

25

Last publish

Collaborators

  • rodrigogs