node package manager


jQuery WordPress user sync

Command line tool for syncing a JSON file of users with the user accounts on a WordPress install.


WordPress must be running the XML-RPC Modernization plugin:



npm install git:// -g


Step 1) Create a JSON file with user account data and put it somewhere publicly. See users.json for an example.

Step 2) Run the jquery-user-sync command providing the necessary arguments:

jquery-user-sync \
  --endpoint= --username=admin --password=123456

Or you can pipe the users in too:

curl | jquery-user-sync \
  --endpoint= --username=admin --password=123456

Step 3) That's it

Using from within node

If you don't want to use the command line, you can also run from within node.

Update your package.json:

"dependencies": {
    "wordpress-user-sync": "git://"

Then require and run, provide the WP settings, a stream of JSON of users and a success callback:

var http = require('http'),
  url = require('url'),
  sync = require('wordpress-user-sync'),
  settings = {
    wordpress_api_url: '',
    username: 'admin',
    password: 'password'

http.get( url.parse(''), function(res){ settings, res, function( error, users ){
    } else {
      console.log("All done");
  } );
} );