3.2.0 • Published 3 years ago

blogtraversy v3.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Getting Started

Installation

The easiest way to install blogtraversy is using NPM. If you have Node.js installed, it is most likely that you have NPM installed as well

$ npm install blogtraversy

Usage

  1. Add the following to index.js
const {getBlogs} = require('blogtraversy')
  1. A usernames config file is recommended. For now, you can use like this.
const {getBlogs} = require('blogtraversy')

const usernames = {
    mediumUsername:'abirwrites',
    hashnodeUsername:'imabp'
}
  1. Call GetBlogs based on your requirement passing your usernames config.
getBlogs('all',usernames).then((res)=>console.log("All Blogs=>",res));
getBlogs('medium',usernames).then((res)=>console.log("Medium Blogs=>",res));
getBlogs('hashnode',usernames).then((res)=>console.log("Hashnode Blogs",res));
  1. The received res consists of the following array of objects.
//getBlogs('all',usernames) 
res= {
    mediumArticles:[
        {
            url: string,
            title: string,
            thumbnail: string
        }
    ],
    hashnodePosts:[
        {
            url: string,
            title: string,
            thumbnail: string
        }  
    ]
}

//getBlogs('medium',usernames) 
res =[  
        {
            url: string,
            title: string,
            thumbnail: string
        }
]

//getBlogs('hashnode',usernames) 
res =[  
        {
            url: string,
            title: string,
            thumbnail: string
        }
]

Contribution

For contributions, please go through active issues

3.2.0

3 years ago

3.1.3

3 years ago

3.1.2

3 years ago

3.1.1

3 years ago

3.1.0

3 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.0.3

3 years ago

2.2.0

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago