Skip to content

Latest commit

 

History

History
108 lines (68 loc) · 2.89 KB

README.md

File metadata and controls

108 lines (68 loc) · 2.89 KB

Zing


🐌 Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting, more information composite formatting An external link. 🚀




💖 Support further development

I work hard for every project, including this one and your support means a lot to me!
Consider buying me a coffee. ☕
Thank you for supporting my efforts! 🙏😊


Donate to igorskyflyer

@igorskyflyer



🕵🏼 Usage

Install it by executing:

npm i "@igor.dvlpr/zing"

🤹🏼 API

zing(value: string, ...args: any[]): string

Formats the provided string in a C# style format, i.e. adds the ability to use positional arguments, like seen with String.Format in C#.

See Composite formatting.


value: string => The string to process that support positional parameters, i.e. zing('Hello {0} {1}', 'Igor', 'Dimitrijević') would output Hello Igor Dimitrijević.

The returned value is always a string.


📝 Changelog

✨ Changelog is available here: CHANGELOG.md.


🪪 License

Licensed under the MIT license which is available here, MIT license.


🧬 Related

@igor.dvlpr/recursive-readdir

📖 Provides recursive readdir() and readdirSync() functions. 📁


@igor.dvlpr/regkeys

📚 An npm package for fetching Windows registry keys. 🗝


@igor.dvlpr/jmap

🕶️ Reads a JSON file into a Map. 🌻


@igor.dvlpr/unc-path

🥽 Provides ways of parsing UNC paths and checking whether they are valid. 🎱


@igor.dvlpr/scrollend-polyfill

🛴 A performant and light (< 1KB) JavaScript polyfill for the scrollend Event. ⛸️



Provided by Igor Dimitrijević (@igorskyflyer).