Skip to content

An npm Package for Node.js to retrieve Treehouse profile information in JSON from the Treehouse API.

Notifications You must be signed in to change notification settings

treehouse/treehouse_profile.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

treehouse_profile

An npm Package for Node.js to retrieve Treehouse profile information in JSON from the Treehouse API.

Basic Usage

var Profile = require("treehouse_profile");

var studentProfile = new Profile("chalkers");

/**
* When the JSON body is fully received the 
* the "end" event is triggered and the full body
* is given to the handler or callback
**/
studentProfile.on("end", console.dir);

/**
* If a parsing, network or HTTP error occurs an
* error object is passed in to the handler or callback
**/
studentProfile.on("error", console.error);

About

An npm Package for Node.js to retrieve Treehouse profile information in JSON from the Treehouse API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages