development
Calculate the number of language model tokens for a string
Here's an easy way to calculate the number of language model tokens for a string.
Create npm package with CommonJS and ESM support in TypeScript
Create an npm package that supports both CommonJS and ECMAScript Modules (ESM) using TypeScript.
Trace the location of API requests
APIs are crucial for app integration with cloud services, but debugging API requests can be challenging. Here's a trick to quickly trace the location of each API request in your code.
Easily see if you have system proxy configured on macOS
Use ProxyStat to easily see if you have system proxy configured on macOS
Easily debug Microsoft Graph Java SDK requests
Using the Microsoft Graph Java SDK is a convenient way to connect your app to Microsoft 365. Here's how you can easily debug API requests issued from the SDK.