GitXplorerGitXplorer
j

stringfuns

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
fc45f2b2cdd005bef61a5c34378272edb8e5377b

Escape ampersands in the right place

jjbt committed 12 years ago
Unverified
6acf85ece128b2628087fe2dadfe3523635eb52f

Add a couple of semicolons, and change str[idx] to str.charAt(idx)

jjbt committed 12 years ago
Unverified
2bdb86a050d57f22d809a59eb02f842a04ab691c

Just realised this wouldn't have worked.

jjbt committed 12 years ago
Unverified
4c987e1f59bc8cad1c17bce816641dffa2cd6454

Add licence for clarification. Stolen from my js-crypto repo.

jjbt committed 12 years ago
Unverified
6b0510b5b993db1d61a0cc06807f2456c857d5f7

Small cosmetic changes to the demonstration page

wwandernauta committed 12 years ago
Unverified
08ba0f7d81be45dc7dc32f33c9e01afb7e922344

Make demonstration page more useful

wwandernauta committed 12 years ago

README

The README file for this repository.

stringfuns

This is stringfuns, a small collection of JavaScript string functions that should come by default but don't. Most are inspired by other languages.

The index.html file contains a demonstration page that should be quite useful on its own.

  • String.atob()
  • String.btoa()
  • String.capitalize()
  • String.chomp(chr)
  • String.escapeHTML()
  • String.md5()
  • String.reverse()
  • String.sha1()
  • String.sha256()
  • String.squeeze()
  • String.times()
  • String.trim()
  • String.truncate()

Licence and Usage

These scripts are licensed under the ☺ licence, so basically you're free to use them however you please - feel free to use or modify them in whatever way you like. You don't have to explicitly credit me (but if you do then I won't complain), but just don't pass them off as entirely your own, ok? That's just not cool.