wordpress-debug

1.0.1 • Public • Published

wordpress-debug

NPM version Travis Build Status dependencies Status devDependencies Status

Enable or disable Wordpress debug.

Install

npm install wordpress-debug --save-dev

Usage

const wordpressDebug = require('wordpress-debug').default;
 
wordpressDebug('path/to/wp-config.php'); // Enable debug
wordpressDebug('path/to/wp-config.php', true); // Enable debug
wordpressDebug('path/to/wp-config.php', false); // Disable debug

API

wordpressDebug(wpConfigPath, debug)

Returns a Promise.

wpConfigPath

Type: string

Required: true

Path to wp-config.php.

debug

Type: boolean

Default: true

Required: false

Enable or disable debug.

Contribution

Feel free to push your code if you agree with publishing under the MIT license.

Changelog

License

/wordpress-debug/

    Package Sidebar

    Install

    npm i wordpress-debug

    Weekly Downloads

    5

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • cap-bernardito
    • evilebottnawi
    • itgalaxy-owner