https://github.com/oktopost/plankton-text
Text manipulation methods built on top of Plankton namespace.
https://github.com/oktopost/plankton-text
Last synced: 9 months ago
JSON representation
Text manipulation methods built on top of Plankton namespace.
- Host: GitHub
- URL: https://github.com/oktopost/plankton-text
- Owner: Oktopost
- License: mit
- Created: 2017-03-15T09:13:59.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-10T10:34:08.000Z (about 5 years ago)
- Last Synced: 2025-03-10T18:47:36.463Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Plankton Text
Text manipulation methods built on top of Plankton namespace.
## Initialize
``` javascript
var text = window.plankton.text;
```
Or
``` javascript
var text = require('plankton-text');
```
## Usage
### capitalize
``` javascript
text.capitalize('myText'); // MyText
```
### camelize
``` javascript
text.camelize('MyClassName'); // myClassName
text.camelize('my class name'); // myClassName
```
### ucwords
``` javascript
text.ucwords('my nice title'); // My Nice Title
```