JSPM

treehouse_profile

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q16699F
  • License MIT

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

Package Exports

  • treehouse_profile

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (treehouse_profile) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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);