New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fullcontact.js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fullcontact.js

Simple interface for FullContact's API, using node-request.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

FullContact.js

An effortless interface for FullContact, using node-request.

Install

In terminal:

npm install fullcontact.js

Usage

In your JavaScript:

var FullContact = require('fullcontact.js')
  , fc = new FullContact('your_api_key');

function your_callback(response) {
	// handle returned data
}

fc.person({email: 'garbados@gmail.com'}, your_callback);

The response param given to your callback is a JavaScript object built by parsing the JSON returned by FullContact. So, a simple callback might be:

function simple_callback(response) {
	console.log(response.status); // prints the response code your call returned.
}

FullContact API Documentation

Check out FullContact's documentation here.

Tests

To run the test suite, then do this after installing the library:

npm test fullcontact.js your_api_key

If you entered a valid API key as a command-line argument, the tests should (as of this writing) pass. They pass silently, so if you run the tests and nothing prints, you're good.

FAQs

Package last updated on 05 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts