Socket
Socket
Sign inDemoInstall

lodash.startcase

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.startcase - npm Package Compare versions

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc