node-randomuser
A randomuser.me API Node.js Utility
Installation
Install using the node.js package manager npm:
$ npm install node-randomuser
Or install via git clone:
$ git clone https://github.com/danielyewright/node-randomuser.git$ cd node-randomuser$ npm install
Usage
Require module and initialize client
var RandomUser = ;var randomUser = ;
.getUsers(callback)
randomUser;
.getUsers(params, callback)
randomUser;
Parameters (params)
results
- specifies the number of results to returnnat
- specifies the nationality to use
Read randomuser's API Documentation for more options.
Testing
To run the mocha.js test cases:
$ npm test
Contributing
Feel free to contribute!