Get all files extensions from GitHub repo
npm install
npm run start
npm run dev
npm run test
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
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
}
👤 Leandro Gugliotta
- Github: @lgugliotta
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator