🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

typescriptpdx_blog

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typescriptpdx_blog

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

1.0.0
latest
npm
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 11 Sep 2015

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