randomuser-json-export
v1.0.7
Published
Allows the export of specific fields from the randomuser.me API to a JSON file
Maintainers
Readme
randomuser-json-export
A randomuser.me command-line utility
This node module gets specific data from the randomuser.me API, places it into a new array and saves the data in a JSON file. This is ideal if you only want specific data from the API to use as sample data in a RESTful webapp.
Getting Started
Install the npm package
npm install randomuser-json-exportRun the utility
node index.jsThe output JSON file will be in the root of the package directory. By default, the file name is data.json. Currently, the utility only gets 20 results from the API. To change this, edit the HTTP URL in index.js.
https://randomuser.me/api/?nat=us&results=20Read the randomuser.me docs for more configuration options.
