shlogg · Early preview
Ramu Narasinga @karthik-m22

Jiti Package Simplified For Software Engineers

Discover Jiti, a package by Unjs that enables seamless interoperability between ESM & CommonJS in Node.js. Used in Docusaurus & Unbuild projects for loading modules with various syntax support.

For this week, I have been reading unbuild source code and found few packages that I have never seen before or used. I wanted to share some interesting packages that are used in these OSS projects so we can learn a thing or two ;)
The following are discussed in this article:

What is Jiti?
Jiti’s usage in Docusaurus


  
  
  What is Jiti?

Jiti is a package built by authors at Unjs. Unjs provides JS tools, libraries and has about 63 npm packages and 421m downloads per month. Sheesh, that’s a lot.
Jiti repository has this description “Runtime TypeScript and ESM support for Node.js”. Okay, what...