jbt/stringfuns — pull request #1 by wandernauta (2012-08-12 11:15:27+00:00)
Title: My take on stringfuns

Hello James,

Today I ran into your stringfuns repository and realized it's pretty much exactly what I was looking for (I'm building a JavaScript-heavy app but can't use a large framework). Your collection didn't have everything I needed yet, so I decided to fork your repo and add them. Your repo doesn't have a license, but I assumed it was okay - if not, please say so and I'll nuke the fork from orbit immediately.

In short, what I did was this: I moved all functions from the global namespace to the String prototype (to avoid collisions and enable "".md5() style calls), added some functions I missed from Ruby, changed the styling of `index.html` to be a bit more Mac-like and moved the `index.html`-specific functions to that file so that I can use `funs.js` in the project.

Again, I hope you didn't mind. Enclosed is everything I changed - feel free to copy (apply? merge? No idea what it's called) it if you think I improved on your idea, or don't if you think I ruined it :)

Have a great Sunday!

Cheers,
Wander