can-string
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -6,3 +6,3 @@ 'use strict'; | ||
QUnit.module("can-util/js/string"); | ||
QUnit.module("can-string"); | ||
@@ -9,0 +9,0 @@ |
@@ -7,9 +7,2 @@ 'use strict'; | ||
// © 2005-2007 Sam Stephenson | ||
/** | ||
* @module {{}} can-string | ||
* @parent can-js-utilities | ||
* @collection can-infrastructure | ||
* | ||
* @description String utilities used by CanJS libraries | ||
*/ | ||
var strUndHash = /_|-/, | ||
@@ -16,0 +9,0 @@ strColons = /\=\=/, |
@@ -1,5 +0,21 @@ | ||
@page can-string | ||
@module {Object} can-string | ||
@parent can-js-utilities | ||
@collection can-infrastructure | ||
# can-string | ||
@description String utilities. | ||
String helpers | ||
@type {Object} | ||
`can-string` exports an object with the following methods: | ||
```js | ||
import string from "can-string"; | ||
// or | ||
import {string} from "can"; | ||
string.camelize("foo-bar")) //-> "fooBar" | ||
string.capitalize("foo") //-> "Foo" | ||
string.esc("<div>foo</div>")//-> "<div>foo</div>" | ||
string.hyphenate("fooBar") //-> "foo-bar" | ||
string.underscore("fooBar") //-> "foo_bar" | ||
``` |
{ | ||
"name": "can-string", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "String helpers", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
13770
182