This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file This script automatically refreshes a given webpage at specified intervals using Puppeteer. | |
* It is designed to monitor changes on a webpage over time. This version includes better error handling | |
* and resource management to ensure the script runs efficiently. | |
*/ | |
const puppeteer = require('puppeteer'); | |
let browser; | |
const refreshUrl = 'https://profile-counter.glitch.me/montasim/count.svg'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This script processes JavaScript files by minifying them using Terser and copies other types of files. | |
* It reads configurations from a build.json, respects ignore patterns, and logs the process summary. | |
* | |
* @fileoverview Script to minify JavaScript files and copy other file types while tracking file sizes. | |
*/ | |
const fs = require('fs'); | |
const path = require('path'); | |
const { sync: globSync } = require('glob'); |
If you discover a security vulnerability in service, please do the following:
-
Do not create a public issue or pull request, as this could expose the vulnerability to malicious actors.
-
Instead, please email me at montasimmamun@gmail.com with details of the vulnerability and steps to reproduce it. Please include the following information in your report:
-
A description of the vulnerability and how it can be exploited
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 2, | |
"builds": [ | |
{ | |
"src": "./src/server.js", | |
"use": "@vercel/node" | |
} | |
], | |
"routes": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Defines common HTTP status codes for use in API responses. | |
* These status codes represent various states of HTTP responses and are | |
* commonly used to communicate the result of API requests. | |
* Adjust these codes as needed to align with the APIs response requirements. | |
* | |
* @author Mohammad Montasim -Al- Mamun Shuvo | |
* @date 2024-03-03 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Defines common MIME types for use in API responses. | |
* These MIME types represent various types of content that can be served by the API. | |
* Adjust these MIME types as needed to align with the APIs content requirements. | |
* | |
* @author Mohammad Montasim -Al- Mamun Shuvo | |
* @date 2024-03-03 | |
*/ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Defines common file extension types for use in API responses. | |
* These file extension types represent various types of files that can be served by the API. | |
* Adjust these file extension types as needed to align with the APIs content requirements. | |
* | |
* @author Mohammad Montasim -Al- Mamun Shuvo | |
* @date 2024-03-03 | |
*/ | |
/** |
See how a minor change to your commit message style can make a difference.
Tip
Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs
NewerOlder