1.0.2 • Published 11 months ago

wordpress-detect v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

WordPress Detect

A utility to detect if a website is running on WordPress.

Installation

You can install this package using npm:

npm install wordpress-detect

Usage

CommonJS

const { isWordPress } = require('wordpress-detect');

isWordPress('https://example.com').then(isWP => {
    console.log(isWP ? 'This is a WordPress site.' : 'This is NOT a WordPress site.');
});

ES6

import { isWordPress } from 'wordpress-detect';

isWordPress('https://example.com').then(isWP => {
    console.log(isWP ? 'This is a WordPress site.' : 'This is NOT a WordPress site.');
});

Future Plans

  • Detect the WordPress theme name.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago