Skip to content

lgugliotta/extension-counter

Repository files navigation

Welcome to github-extension-counter 👋

Version License: ISC

Get all files extensions from GitHub repo

Install

npm install

Usage

npm run start

Run develop

npm run dev

Run tests

npm run test

Local Environment

You need to create a new file under config folder called index.local.js with following code:

const dev = {
  NAME: 'Extension Counter',
  ENV: 'DEVELOPMENT',
  LOG_LEVEL: 'DEBUG',
  PORT: 3000,
  GITHUB: {
    URL: 'https://api.github.com/',
    TOKEN: ''
  }
}

module.exports = {
  dev
}

Previously you need to create a new Personal acces Token (Classic) in GitHub Creating a personal access token

Then copy the token and paste in GITHUB.TOKEN

Endpoint

POST /repo/extension-count HTTP/1.1
Host: localhost:3000
Content-Type: application/json

Body:
{
    "repoURL": "https://github.com/argoproj/argo-site"
}

Example Response:
{
    "md": 194,
    "svg": 216,
    "gif": 1,
    "png": 11,
    "mdx": 4,
    "js": 34,
    "json": 1,
    "scss": 3,
    "woff": 2,
    "woff2": 2,
    "lock": 1
}

Author

👤 Leandro Gugliotta

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Test for Zinklar

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published