can-string
String utilities.
Object
can-string
exports an object with the following methods:
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"
string.pascalize("foo-bar") //-> "FooBar"