Socket
Socket
Sign inDemoInstall

can-string

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

can-string-test.js

@@ -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>")//-> "&lt;div&gt;foo&lt;/div&gt;"
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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc