0.2.6 • Published 1 year ago

gh-trending-parser v0.2.6

Weekly downloads
11
License
MIT
Repository
github
Last release
1 year ago

gh-trending-parser

An NPM module to parse given GitHub Trending HTML content. Generates an array of objects to consume. The JSON structure will be the same for every instance.

{
  "repo": {
    "rawName": "InterviewMap / InterviewMap",
    "owner": "InterviewMap",
    "name": "InterviewMap",
    "link": "/InterviewMap/InterviewMap",
    "description": "Build the best interview map. The current content includes JS, network, browser related, performance optimization, security, framework, Git, data structure, algorithm, etc."
  },
  "stars": {
    "count": 3897,
    "link": "/InterviewMap/InterviewMap/stargazers"
  },
  "forks": {
    "count": 382,
    "link": "/InterviewMap/InterviewMap/network"
  },
  "todayStars": 652
}

Install

npm install gh-trending-parser

Usage

const parser = require('gh-trending-parser')
const items = parser.parse(HTMLString);

Test

npm run test

License

The project is under MIT license.

0.2.6

1 year ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago