nw

node-wp

WordPress API Wrapper for Node.js

Showing:

Popularity

Downloads/wk

0

GitHub Stars

0

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-wp

WordPress API Wrapper For Node.js

Installation

$ npm install --save node-wp

Usage

var
   NodeWP = require('node-wp')
   , wp   = new NodeWP('YOUR_API_ENDPOINT');

wp
   .posts({
      page: 1,
      per_page: 5
   })
   .then(function (posts) {
   
      posts.forEach(function (post) {
         console.log( post.slug );
      });
      
   })
   .catch(function (err) {
      console.log('ERROR!');
   });

Methods availables

All methods parameters can be found on API documentation

Posts

wp.posts( [parameters] )

Pages

wp.pages( [parameters] )

Media

wp.media( [parameters] )

Comments

wp.comments( [parameters] )

Pages

wp.pages( [parameters] )

Taxonomies

wp.taxonomies( [parameters] )

Categories

wp.categories( [parameters] )

Tags

wp.tags( [parameters] )

Users

wp.users( [parameters] )

Author

Copyright 2014-2015 Sébastien Decamme. Released under MIT.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial