JS Humanize (Give data a human touch)
github.com
JS Humanize (Give data a human touch)
1–10 of 25 posts
Re: JS Humanize (Give data a human touch)
#2Re: JS Humanize (Give data a human touch)
#3Is it possible to have these in a stand alone library/namespace without the need for bringing the whole of jQuery with it? Not everyone uses jQuery in their JS application and it certainly would aid those who perform server-side JS.
That pedantry aside, it seems like a decent enough chunk of code, and it's very easy to read. More libraries should be this clean.
Re: JS Humanize (Give data a human touch)
#4Is it possible to have these in a stand alone library/namespace without the need for bringing the whole of jQuery with it? Not everyone uses jQuery in their JS application and it certainly would aid those who perform server-side JS.
EDIT: Actually having now looked at the code, it seems a lot of it is specifically using the phpjs library.
Re: JS Humanize (Give data a human touch)
#5Is it possible to have these in a stand alone library/namespace without the need for bringing the whole of jQuery with it? Not everyone uses jQuery in their JS application and it certainly would aid those who perform server-side JS.
Re: JS Humanize (Give data a human touch)
#6Re: JS Humanize (Give data a human touch)
#7Is it possible to have these in a stand alone library/namespace without the need for bringing the whole of jQuery with it? Not everyone uses jQuery in their JS application and it certainly would aid those who perform server-side JS.
Re: JS Humanize (Give data a human touch)
#8Re: JS Humanize (Give data a human touch)
#9 => Humanize.truncatechars("alert('yo');", 30)
"alert('yo');"
=> Humanize.linebreaks("alert('yo');")
"alert('yo');
"
Bug filed.Re: JS Humanize (Give data a human touch)
#10This might need some internationalization support...