GithubHelp home page GithubHelp logo

ungurnicoleta / brave-versions Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brave/brave-versions

1.0 1.0 0.0 134 KB

Generate an easily queryable metadata set about Brave releases

License: Mozilla Public License 2.0

JavaScript 100.00%

brave-versions's Introduction

brave-versions

Generate an easily queryable JSON dataset about Brave public releases

This script stitches together data about public Brave releases from Github and the package.json data from brave-browser to produce a central dataset about Brave versions.

Getting started

Dependencies

Clone and install dependencies

git clone https://github.com/marshall/brave-versions
cd brave-versions

nvm use
yarn install

Run brave-versions

yarn run brave-versions

By default generated json is written to brave-versions.json

Configuration

Configuration is currently done through command line switches and environment variables / dotenv.

Command line

$ brave-versions --help
Usage: brave-versions [options]

Options:
  -V, --version            output the version number
  --brave-browser <dir>    existing brave-browser git repo (default: "/Users/marshall/.brave-versions/brave-browser")
  --cache-dir <dir>        cache in dir (default: "/Users/marshall/.brave-versions")
  --cache-github-releases  enable cached github releases (default: false)
  --no-git-pull            skip git pull in brave-browser (default: git pull to update)
  -o, --output <file>      path to output json manifest (default: brave-versions.json)
  -h, --help               display help for command

Environment Variables

Name Description
BRAVE_VERSIONS_DIR path where data is cached, by default this is $HOME/.brave-versions
GITHUB_TOKEN optional authorization token for Github API (use to raise the Github API rate limit)

Data format

The manifest generated by brave-versions is a JSON file with the following general structure:

{
  "<git tag>": {
    "tag": "<git tag>",
    "name": "<version name>",
    "channel": "stable|beta|nightly|dev",
    "commit": "<git sha>",
    "published": "<release publish date/time>",
    "dependencies": {
      "chrome": "<chrome version>"
    },
    "github": {
      "release_id": "<github release id>",
      "assets": [
        {
          "id": "<github asset id>",
          "name": "<filename>",
          "download_url": "<github download url>"
        },
        //...
      ]
    }
  },
  //...
}

brave-versions's People

Contributors

marshall avatar mihaiplesa avatar ungurnicoleta avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.