lodash.startcase
Advanced tools
Comparing version 4.1.0 to 4.2.0
27
index.js
/** | ||
* lodash 4.1.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.2.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
var capitalize = require('lodash.capitalize'), | ||
deburr = require('lodash.deburr'), | ||
var deburr = require('lodash.deburr'), | ||
upperFirst = require('lodash.upperfirst'), | ||
words = require('lodash.words'); | ||
@@ -21,3 +21,4 @@ | ||
* @param {*} [accumulator] The initial value. | ||
* @param {boolean} [initAccum] Specify using the first element of `array` as the initial value. | ||
* @param {boolean} [initAccum] Specify using the first element of `array` as | ||
* the initial value. | ||
* @returns {*} Returns the accumulated value. | ||
@@ -52,6 +53,8 @@ */ | ||
/** | ||
* Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). | ||
* Converts `string` to | ||
* [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 3.1.0 | ||
* @category String | ||
@@ -62,3 +65,3 @@ * @param {string} [string=''] The string to convert. | ||
* | ||
* _.startCase('--foo-bar'); | ||
* _.startCase('--foo-bar--'); | ||
* // => 'Foo Bar' | ||
@@ -69,9 +72,9 @@ * | ||
* | ||
* _.startCase('__foo_bar__'); | ||
* // => 'Foo Bar' | ||
* _.startCase('__FOO_BAR__'); | ||
* // => 'FOO BAR' | ||
*/ | ||
var startCase = createCompounder(function(result, word, index) { | ||
return result + (index ? ' ' : '') + capitalize(word); | ||
return result + (index ? ' ' : '') + upperFirst(word); | ||
}); | ||
module.exports = startCase; |
{ | ||
"name": "lodash.startcase", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "The lodash method `_.startCase` exported as a module.", | ||
@@ -12,3 +12,3 @@ "homepage": "https://lodash.com/", | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)", | ||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)", | ||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" | ||
@@ -19,6 +19,6 @@ ], | ||
"dependencies": { | ||
"lodash.capitalize": "^4.0.0", | ||
"lodash.deburr": "^4.0.0", | ||
"lodash.upperfirst": "^4.0.0", | ||
"lodash.words": "^4.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.startcase v4.1.0 | ||
# lodash.startcase v4.2.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.startCase` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#startCase) or [package source](https://github.com/lodash/lodash/blob/4.1.0-npm-packages/lodash.startcase) for more details. | ||
See the [documentation](https://lodash.com/docs#startCase) or [package source](https://github.com/lodash/lodash/blob/4.2.0-npm-packages/lodash.startcase) for more details. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5491
71
1
+ Addedlodash.upperfirst@^4.0.0
+ Addedlodash.upperfirst@4.3.1(transitive)
- Removedlodash.capitalize@^4.0.0
- Removedlodash.capitalize@4.2.1(transitive)