Introduction
FuncyStr (pronounced "Funky string") is a lightweight JavaScript library designed to process strings with embedded functions. It allows dynamic string resolution based on provided parameters, supporting nested and multiple function calls within a single string.
The library was inspired by MediaWiki's internationalization system.
Features
- Dynamic string resolution: Replace placeholders in strings with dynamic values based on provided parameters.
- Custom functions: Define your own functions to handle specific placeholders.
- Nested functions: Supports resolving functions within other functions.
- Asynchronous functions: Define functions that fetch data from remote sources.
- Graceful handling: Leaves unresolved placeholders intact if no matching function is defined.
License
This project is licensed under the MIT License by Moriel Schottlender. Credit is appreciated.
If you want to support this project, please feel free to submit pull requests, add issues, or support me by buying me coffee.