Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

wpapi/fetch

This endpoint returns a version of the WPAPI library configured to use Fetch for HTTP requests.

Installation & Usage

Install both wpapi and isomorphic-unfetch using the command npm install --save wpapi isomorphic-unfetch.

import WPAPI from 'wpapi/fetch';

// Configure and use WPAPI as normal
const site = new WPAPI( { /* ... */ } );