<commit_before># node-wordpress

A node.js JavaScript client for working with WordPress.

Support this project by [donating on Gratipay](https://gratipay.com/scottgonzalez/).

Requires WordPress 3.4 or newer (uses the [WordPress XML-RPC API](http://codex.wordpress.org/XML-RPC_WordPress_API)).



## Installation

```
npm install wordpress
```



## Usage

```js
var wordpress = require( "wordpress" );
var client = wordpress.createClient({
	url: "my-site.com",
	username: "admin",
	password: "<PASSWORD>"
});

client.getPosts(function( error, posts ) {
	console.log( "Found " + posts.length + " posts!" );
});
```

More usage examples can be found in the `examples` directory.



## API
<commit_msg>README: Add link to Gilded WordPress<commit_after># node-wordpress

A node.js JavaScript client for working with WordPress.

Support this project by [donating on Gratipay](https://gratipay.com/scottgonzalez/).

Requires WordPress 3.4 or newer (uses the [WordPress XML-RPC API](http://codex.wordpress.org/XML-RPC_WordPress_API)).



## Installation

```
npm install wordpress
```



## Usage

```js
var wordpress = require( "wordpress" );
var client = wordpress.createClient({
	url: "my-site.com",
	username: "admin",
	password: "<PASSWORD>"
});

client.getPosts(function( error, posts ) {
	console.log( "Found " + posts.length + " posts!" );
});
```

More usage examples can be found in the `examples` directory.

### Full Site Synchronization

Looking for a way to manage your WordPress site without writing a bunch of code? Use [Gilded WordPress](https://github.com/scottgonzalez/gilded-wordpress) to easily synchronize your entire site from a local directory.



## API

{'fraction_non_alphanumeric': 0.13448894202032277, 'fraction_numerical': 0.002390914524805738, 'mean_word_length': 4.561461794019934, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5464798', 'n_tokens_mistral': 560, 'n_tokens_neox': 516, 'n_words': 164}