Skip to content

Instantly share code, notes, and snippets.

View Aicirou's full-sized avatar
📈
1% everyday! ❤️

Aicirou

📈
1% everyday! ❤️
View GitHub Profile
@Aicirou
Aicirou / free-backend-hosting.md
Created September 27, 2024 13:14 — forked from bmaupin/free-backend-hosting.md
Free backend hosting
@Aicirou
Aicirou / hasValueAndNotNull.js
Created February 29, 2024 15:54
// This function checks if an array or object is empty, null, or has no values.
export function hasValueAndNotNull(data) {
// This function checks if an array or object is empty, null, or has no values.
// Parameters:
// - data: The array or object to be checked.
// Returns:
// - Returns true if the data is not empty, null, or has values.
// - Otherwise, prints an error message to the console and returns false.
@Aicirou
Aicirou / node-typescript-esm.md
Created November 21, 2023 17:51 — forked from khalidx/node-typescript-esm.md
A Node + TypeScript + ts-node + ESM experience that works.

The experience of using Node.JS with TypeScript, ts-node, and ESM is horrible.

There are countless guides of how to integrate them, but none of them seem to work.

Here's what worked for me.

Just add the following files and run npm run dev. You'll be good to go!

package.json