https://github.com/oknoorap/wp-plugin-info
:ear: Get WordPress plugin information
https://github.com/oknoorap/wp-plugin-info
wordpress wordpress-org-api wordpress-plugin
Last synced: 2 months ago
JSON representation
:ear: Get WordPress plugin information
- Host: GitHub
- URL: https://github.com/oknoorap/wp-plugin-info
- Owner: oknoorap
- License: mit
- Created: 2017-08-24T06:29:44.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-24T07:34:11.000Z (almost 9 years ago)
- Last Synced: 2025-12-25T04:46:30.217Z (6 months ago)
- Topics: wordpress, wordpress-org-api, wordpress-plugin
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :ear: WordPress Plugin Info
Get Plugin Info via WordPress API. Read more: https://codex.wordpress.org/WordPress.org_API
# Install
```bash
# NPM
npm install wp-plugin-info --save
# yarn
yarn add wp-plugin-info
```
# Usage
Syntax: `info(slug, [options])`
## Example
```javascript
const pluginInfo = require('wp-plugin-info')
pluginInfo.all('woocommerce', {
fields: ['author', 'dowloaded', 'versions']
}).then(result => {
console.log(result)
}).catch(err => {
console.log(err)
})
```
### Methods
#### `all(slug: String, options?: Object)`
Get all information
#### `version(slug: String)`
Get latest version
#### `versions(slug: String)`
Get all versions with download links
#### `versionsRaw(slug: String)`
Get all versions without download links
#### `author(slug: String)`
Get plugin's author
### Options
#### `fields:Array`
# License
MIT © [oknoorap](https://github.com/oknoorap)