Skip to content

๐ŸŒ Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting. ๐Ÿš€

License

Notifications You must be signed in to change notification settings

igorskyflyer/npm-zing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

61 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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).

About

๐ŸŒ Zing is a C# style String formatter for JavaScript that empowers Strings with positional arguments - composite formatting. ๐Ÿš€

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project