trendgetter

0.0.1 • Public • Published

trendgetter

A tool to fetch a newline delimited list of JSON objects representing the top list of starred JavaScript repositories on GitHub.

Install

npm install -g trendgetter

CLI

$ trendgetter -h
usage: cli.js [-h] [-v] [--pages PAGES] token

Grabs top starred JavaScript repos from the GitHub search API and writes them
to STDOUT

Positional arguments:
  token          A valid GitHub token.

Optional arguments:
  -h, --help     Show this help message and exit.
  -v, --version  Show program's version number and exit.
  --pages PAGES  The number of pages to fetch, set to -1 for all. Defaults to
                 2

Grab some trendy repos!

$ trendgetter 1234567890123456789012345678901234567890
{"id":28457823,"name":"freeCodeCamp","full_name":"freeCodeCamp/freeCodeCamp","owner" ...

Try format to CSV with csv-write-stream:

$ npm i -g csv-write-stream
$ trendgetter 1234567890123456789012345678901234567890 | csv-write > results.csv

License

MIT

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i trendgetter

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    4.28 kB

    Total Files

    5

    Last publish

    Collaborators

    • codesleuth