https://github.com/seriousbug/microfern
Minimal JavaScript & TypeScript string templating engine that runs anywhere
https://github.com/seriousbug/microfern
browser bun edge-functions javascript-library nodejs string-template string-templating template-engine typescript-library
Last synced: 2 months ago
JSON representation
Minimal JavaScript & TypeScript string templating engine that runs anywhere
- Host: GitHub
- URL: https://github.com/seriousbug/microfern
- Owner: SeriousBug
- License: mit
- Created: 2024-06-21T04:21:03.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T19:38:45.000Z (almost 2 years ago)
- Last Synced: 2026-01-17T09:28:49.528Z (3 months ago)
- Topics: browser, bun, edge-functions, javascript-library, nodejs, string-template, string-templating, template-engine, typescript-library
- Language: TypeScript
- Homepage: http://microfern.bgenc.net/
- Size: 1.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 
[](https://www.npmjs.com/package/microfern)
[](https://microfern.bgenc.net)
[](https://github.com/SeriousBug/microfern/blob/main/LICENSE.txt)
[](https://app.codecov.io/gh/SeriousBug/microfern)
Microfern is a minimal string templating engine for JavaScript & TypeScript that works
in [Node.js](https://nodejs.org/en), browsers ([Firefox](https://www.mozilla.org/en-US/firefox/new/),
[Chrome](https://www.google.com/chrome/), [Safari](https://www.apple.com/safari/)), Edge functions such as [Cloudflare Workers](https://workers.cloudflare.com) or [Vercel Edge Functions](https://vercel.com/blog/edge-functions-generally-available), and [Bun](https://bun.sh). There are no files, no template
inheritance, no recursion or complex operations. The template language is
inspired by [Nunjucks](https://github.com/mozilla/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.