Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gfarrell/string.js
Useful extensions to the javascript String object
https://github.com/gfarrell/string.js
Last synced: 13 days ago
JSON representation
Useful extensions to the javascript String object
- Host: GitHub
- URL: https://github.com/gfarrell/string.js
- Owner: gfarrell
- Created: 2014-05-15T12:54:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-31T12:41:41.000Z (about 10 years ago)
- Last Synced: 2024-12-16T15:08:43.487Z (about 1 month ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
String.js
=========Useful extensions to the javascript String object. This directly extends `String.prototype` so you can access all these as though they were native functions.
## String.capitalise
myStr.capitalise();
Capitalises the first letter of each word.
## String.underscore
myStr.underscore();
Converts spaces, hyphens and camelCasing to underscores, all in lower case.
## String.deUnderscore
myStr.deUnderscore();
Replaces underscores with spaces, all lower case.
## String.hyphenate
myStr.hyphenate();
Converts spaces, underscores and camelCasing to hyphens, all in lower case.
## String.deHyphenate
myStr.deHyphenate();
Replaces hyphens with spaces, all lower case.
## String.camelCase
myStr.camelCase();
Converts spaces, underscores and hyphens to camelCasing.
## String.deCamelCase
myStr.deCamelCase();
Replaces camelCasing with spaces, all lower case.
## String.format
*Not yet implemented.*