advance-formatter
v0.5.3
Published
Format string in a easy way
Downloads
2
Maintainers
Readme
advance-formatter
Format string in a easy way.
Limitations
- Using character
|
in formatter will cause it to break unexpectedly. - We cannot use many characters in formatter inside string.
Task
Basics
- White spaces in formatter should not matter. [x]
- Should have option to add bracket opening brackets
{{
and closing brackets}}
- Systematic ways to handle undefined. [x]
- Format different structure like array, objects. [x]
- Abstract methods and object properties. [x]
- Use string directly into formatter. [x]
- Find current limitations.
- Add proper test cases.
- Npm package [x]
- Appropriate Examples
Good to have
- Tag system
- Add option for tags to group pipelines and data.
- Tags will have priority
- Tags will option to activate or deactivate
- Cloning formatter
- Add strict mode.
Advance
- Conditionals pipe. [x]
- Discuss on what is treated as present in conditionals value, i.e. pipe
ternary
- Discuss on what is treated as present in conditionals value, i.e. pipe
- Save result of an operation and reuse it.
- Easy way to easily compose multiple pipes.
- Functional programming approach.
Discussion around
- Handle singular and plural forms of words. [x]
- Default values. [x]
- Discuss on what is treated as present in default value, i.e. pipe
present
- Discuss on what is treated as present in default value, i.e. pipe
- Send parameter to pipe. [x]
- How to send named parameter in pipes?
- Way to work it with react.
- How to make certain part of text bold?
- How to add line break somewhere?
- Should
number
be part of value. Ideally it should benon-empty-string | "" | undefined
- How to prase text in formatter which have character of
|
in it?