https://github.com/bnb/superdumbrepo
https://github.com/bnb/superdumbrepo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bnb/superdumbrepo
- Owner: bnb
- Created: 2021-02-16T20:20:12.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-23T09:04:02.000Z (about 5 years ago)
- Last Synced: 2025-03-18T05:11:16.688Z (over 1 year ago)
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# superdumbrepo
Hello and welcome to my super dumb repo that doesn't do anything! We just have a README here.

## Checkout all these people who looked at my repo:
* 👩🏾
## Fun code times:
TypeScript:
```typescript
export function validateURL(url: string): boolean {
const protocols = ['http', 'https'];
try {
new URL(url);
const parsed = parse(url);
logDebug(parsed.protocol);
return protocols
? parsed.protocol
? protocols.map(x => `${x.toLowerCase()}:`).includes(parsed.protocol)
? true : false
: false
: true;
} catch (err) {
return false;
}
}
```