@deox/blogger-feed
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@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!

Readme

Keywords

Package Sidebar

Install

npm i @deox/blogger-feed

Weekly Downloads

53

Version

0.0.3

License

MIT

Unpacked Size

101 kB

Total Files

50

Last publish

Collaborators

  • kumardeo