November: Procrastination Month
Wondering what’s next for npm?Check out our public roadmap! »

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

Install

npm i wordpress-debug

DownloadsWeekly Downloads

4

Version

1.0.1

License

MIT

Last publish

Collaborators

  • avatar
  • avatar
  • avatar