christineywang / reveal-fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple CLI App to Display Photo Based on IP


To use this app, first run:

npm install

Flags

In the command line, you will need to include two flags:

  • --ip
  • --key

The ip flag is set to the IP address for which you'd like to return a photo. The key flag is your Clearbit API key.


Run App

To run the app in the command line:

node index.js --ip="ip_address" --key="api_key"

Example

If you send this for your IP address: 73.15.211.196

Your broswer will open this image:

San Francisco Source: https://unsplash.com/photos/Ji_G7Bu1MoM

About


Languages

Language:JavaScript 100.0%