Skip to content

Minimal JavaScript & TypeScript string templating engine that runs anywhere

License

Notifications You must be signed in to change notification settings

SeriousBug/microfern

Repository files navigation

Microfern - Minimal JavaScript & TypeScript string templating engine that runs anywhere

NPM Version documentation microfern.bgenc.net GitHub License Codecov

Microfern is a minimal string templating engine for JavaScript & TypeScript that works in Node.js, browsers (Firefox, Chrome, Safari), Edge functions such as Cloudflare Workers or Vercel Edge Functions, and Bun. There are no files, no template inheritance, no recursion or complex operations. The template language is inspired by Nunjucks, and should be easy for anyone to write.

Microfern has no dependencies. The core export fits within 1kb minzipped, and the total including everything is under 2kb minzipped.