npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

treehouse_blog

v1.0.0

Published

An npm Package for Node.js to get the metadata about the latest articles on the Treehouse blog.

Downloads

2

Readme

treehouse_blog

An npm Package for Node.js to get the metadata about the latest articles on the Treehouse blog.

Basic Usage

var Blog = require("treehouse_blog");

var treehouseBlog = new Blog("chalkers");

/**
* When the "end" event is triggered an array of article 
* metadata is returned
**/
treehouseBlog.on("end", console.dir);

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

Example of Returned Data


[ 
  { title: 'The Treehouse Show | Episode 148: Web Design Trends, Sharing Buttons, Flexbox Techniques',
    link: 'http://blog.teamtreehouse.com/treehouse-show-episode-148?utm_source=rss&utm_medium=rss&utm_campaign=treehouse-show-episode-148',
    publishDate: Tue Jul 07 2015 08:43:19 GMT-0700 (PDT),
    author: 'Mary McPherson' 
	},
  { title: 'New Course Roundup: Swift, Ruby, CSS',
    link: 'http://blog.teamtreehouse.com/new-course-roundup-swift-ruby-css?utm_source=rss&utm_medium=rss&utm_campaign=new-course-roundup-swift-ruby-css',
    publishDate: Mon Jul 06 2015 09:55:41 GMT-0700 (PDT),
    author: 'Mary McPherson' 
	},
  { title: 'An Introduction to the Rails Command',
    link: 'http://blog.teamtreehouse.com/introduction-rails-command?utm_source=rss&utm_medium=rss&utm_campaign=introduction-rails-command',
    publishDate: Mon Jul 06 2015 08:28:13 GMT-0700 (PDT),
    author: 'Jason Seifer' 
	},
  { title: 'Justin Switched Careers From a Teacher to the First Employee of an Exciting New Startup',
    link: 'http://blog.teamtreehouse.com/justin-switched-careers-teacher-first-employee-exciting-new-startup?utm_source=rss&utm_medium=rss&utm_campaign=justin-switched-careers-teacher-first-employee-exciting-new-startup',
    publishDate: Thu Jul 02 2015 08:00:50 GMT-0700 (PDT),
    author: 'Faye Bridge' 
	},
  { title: 'Tim Now Has a Career He’s Passionate About as a Full-time Developer',
    link: 'http://blog.teamtreehouse.com/tim-career-full-time-developer?utm_source=rss&utm_medium=rss&utm_campaign=tim-career-full-time-developer',
    publishDate: Wed Jul 01 2015 09:00:05 GMT-0700 (PDT),
    author: 'Faye Bridge' 
	},
  { title: 'How to Choose a Programming Language',
    link: 'http://blog.teamtreehouse.com/choose-programming-language?utm_source=rss&utm_medium=rss&utm_campaign=choose-programming-language',
    publishDate: Wed Jul 01 2015 08:00:39 GMT-0700 (PDT),
    author: 'Wade Christensen' 
	},
  { title: 'The Treehouse Show | Episode 147: Web Features, Form Design, Color Pickers',
    link: 'http://blog.teamtreehouse.com/episode-147-web-features-form-design-color-pickers?utm_source=rss&utm_medium=rss&utm_campaign=episode-147-web-features-form-design-color-pickers',
    publishDate: Tue Jun 30 2015 11:36:42 GMT-0700 (PDT),
    author: 'Mary McPherson' 
	},
  { title: 'Use jQuery to Asynchronously Load an Image',
    link: 'http://blog.teamtreehouse.com/using-jquery-asynchronously-loading-image?utm_source=rss&utm_medium=rss&utm_campaign=using-jquery-asynchronously-loading-image',
    publishDate: Tue Jun 30 2015 08:21:21 GMT-0700 (PDT),
    author: 'Andrew Chalkley' 
	},
  { title: 'New Course Roundup – Scrum, JavaScript, Swift, Ruby',
    link: 'http://blog.teamtreehouse.com/new-course-roundup?utm_source=rss&utm_medium=rss&utm_campaign=new-course-roundup',
    publishDate: Mon Jun 29 2015 09:33:41 GMT-0700 (PDT),
    author: 'Mary McPherson' 
	},
  { title: '3 Unexpected Things I Learned as a Treehouse Student',
    link: 'http://blog.teamtreehouse.com/3-unexpected-things-learned-treehouse-student?utm_source=rss&utm_medium=rss&utm_campaign=3-unexpected-things-learned-treehouse-student',
    publishDate: Mon Jun 29 2015 09:12:05 GMT-0700 (PDT),
    author: 'Jim Withington' 
	} 
]

title, link and author are strings and publishData is a JavaScript Date object.