"JavaScript"
Here's the content I've created for this tag
How to implement an OpenAI token counter in your JS app
Til
Deploying on Netlify via GitHub Actions: A Seamless Guide
Post
Convert a boolean-ish string Value into a boolean type with Zod
Code snippet
Embrace the Future: Navigating the New Flat Configuration of ESLint
Post
JSDoc type
Code snippet
How to get the next X day using DayJS
Til
Using dirname in ESModules
Code snippet
Best Practices for Handling Per-Environment Configuration in Your JS/TS Applications
Post
Tips for Testing Time-Dependent JavaScript Functions
Post
How to easily add a property to a function in TS code
Til
Build a JavaScript library with multiple entry points using Vite3
Post
How to fix "resolve.alias" problem in Vite.js
Til
Migrating from pnpm 6 to 7
Post
Troubleshooting a major version migration
How to implement "copy text" feature with the Clipboard browser API
Post
Replacing Lerna + Yarn with PNPM Workspaces
Post
How to spread all arguments in a .sh script
Til
The promise's .then() method accepts an error callback as second param
Til
How to listen for any DOM update
Til
How to have better NPM Scripts
Post
A quick npm package to ease your complex npm scripts
How to test publishing your JavaScript package locally
Post
A simple and quick way of validating if you're publishing is correct.
We can use JSDocs to have a visual indication on VSCode something is deprecated
Til
Using tilde (~) in a dependency version on package.json specifies a patch or minor range to be installed
Til
In setTimeout, the 3thrd+n argument is passed to the callback
Til
How to prove that arrow function does not have "this"
Til
Module Resolution or Import Alias: The Final Guide
Post
A guide how to enable this feature in (almost) any JS/TS project.
Data Structure with JavaScript: Stack
Post
What is and how to implement a stack in JavaScript