JS Classes
Icontem

Notable JavaScript package: JavaScript String Format

Recommend this page to a friend!
  Blog JS Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable JavaScript pa...   Post a comment Post a comment   See comments See comments (5)   Trackbacks (0)  

Author:

Updated on: 2016-06-17

Posted on:

Categories: Notable Packages

Most languages provide standard libraries that allow string manipulation operations like formatting a text string with a list of parameters values. However, JavaScript does not come with any built-in objects for that purpose.

This package can add a prototype to an object to let it format strings in a similar way to sprintf functions of other functions.

Read this article to learn more details about how this notable JavaScript package works.




The package JavaScript String Format is one of the few JavaScript packages that was considered notable recently because it does something that is worth paying attention.

The basic purpose is: Format text string according to a pattern

Here follows in more detail what it does:

This object can format text string according to a pattern.

It adds a prototype to an object that can format a text string expanding certain marks in a given format.

The format marks can determine if the input parameters should be taken as text or numbers. Numbers can be formatted as decimal, hexadecimal or octal.

The formatted values can be justified with spaces and aligned to the left or right.

Notable JavaScript packages can be often considered innovative. If this package is also innovative, it can be nominated to the PHP Innovation Award and the author may win prizes and recognition for sharing innovative packages.

If you also developed your own notable or innovative packages consider sharing them, so you can also earn more visibility for your package.

You need to be a registered user or login to post a comment

Login Immediately with your account on:

FacebookGmail
HotmailStackOverflow
GitHubYahoo


Comments:

1. Question - Stephen Chapman (2016-06-18 02:14)
Is this really notable?... - 4 replies
Read the whole comment and replies



  Blog JS Classes blog   RSS 1.0 feed RSS 2.0 feed   Blog Notable JavaScript pa...   Post a comment Post a comment   See comments See comments (5)   Trackbacks (0)