typescriptpdx_blog

1.0.0 • Public • Published

typescriptpdx_blog

A simple module that gets the latest metadata from the blog posts on the TypeScriptPDX blog

Basic Usage

var Blog = require("typescriptpdx_blog");
 
var pdxBlog = new Blog();
 
/**
* When the "end" event is triggered an array of article 
* metadata is returned
**/
pdxBlog.on("end", console.dir);
 
/**
* If a parsing, network or HTTP error occurs an
* error object is passed in to the handler or callback
**/
pdxBlog.on("error", console.error);

Example of Returned Data

[
    {
        title: 'WebStorm and TypeScript',
        link: 'http: //typescriptpdx.com/blog/2015/07/webstorm-and-typescript',
        publishDate: new Date("Sat Jul 25 2015 17:00:00 GMT-0700 (PDT)")
    },
    {
        title: 'TypeScript - A Brief Overview',
        link: 'http: //typescriptpdx.com/blog/2015/07/typescript-a-brief-overview',
        publishDate: new Date("Sun Jul 12 2015 17:00:00 GMT-0700 (PDT)")
    }
]

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

Readme

Keywords

none

Package Sidebar

Install

npm i typescriptpdx_blog

Weekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • chalkers