0.0.3 • Published 11 days ago

@deox/blogger-feed v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 days ago

@deox/blogger-feed

A blogger feed API client.

Warning This package is under development. Do not use it in production.

Installation

Install the package by running the following command in terminal:

npm install @deox/blogger-feed

Usage

The module can be imported using import in ES Modules and require in Common JS as shown below:

ES Modules:

// index.ts
import { BloggerFeed } from "@deox/blogger-feed";

// ...

Common JS:

// index.cjs
const { BloggerFeed } = require("@deox/blogger-feed");

// ...

API

Some examples are:

// index.ts
import { BloggerFeed } from "@deox/blogger-feed";

const feed = new BloggerFeed("https://blogger-blog.blogspot.com");

(async () => {
  const blog = await feed.blog.get(); // type: Blog

  const posts = await feed.posts.list({ maxResults: 5 }); // type: Post[]

  const pages = await feed.pages.list(); // type: Post[]

  const comments = await feed.comments.list({ maxResults: 20 }); // type: Comment[]

  // ...
})();

There are more methods. You can explore it by installing the package!

0.0.3

11 days ago

0.0.2

11 days ago

0.0.1

13 days ago