underscore.string
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "underscore.string", | ||
"version": "2.4.0", | ||
"version": "3.0.1", | ||
"description": "String manipulation extensions for Underscore.js javascript library.", | ||
@@ -21,2 +21,3 @@ "homepage": "http://epeli.github.com/underscore.string/", | ||
"main": "./dist/underscore.string.js", | ||
"ignore": [], | ||
"repository": { | ||
@@ -23,0 +24,0 @@ "type": "git", |
@@ -5,3 +5,3 @@ { | ||
"description": "String manipulation extensions for Underscore.js javascript library", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "underscore", |
@@ -14,3 +14,3 @@ var gulp = require('gulp-param')(require('gulp'), process.argv), | ||
TEST_SUITES = ['test/test.html', 'test/test_standalone.html', 'test/test_underscore/index.html'], | ||
VERSION_FILES = ['./package.json', './component.json']; | ||
VERSION_FILES = ['./package.json', './component.json', './bower.json']; | ||
@@ -17,0 +17,0 @@ gulp.task('test', ['browserify'], function() { |
var capitalize = require('./capitalize'); | ||
var underscored = require('./underscored'); | ||
var trim = require('./trim'); | ||
module.exports = function humanize(str) { | ||
return capitalize(underscored(str).replace(/_id$/, '').replace(/_/g, ' ')); | ||
return capitalize(trim(underscored(str).replace(/_id$/, '').replace(/_/g, ' '))); | ||
}; |
@@ -6,3 +6,3 @@ // Underscore.string | ||
// Some code is borrowed from MooTools and Alexandru Marasteanu. | ||
// Version '3.0.0' | ||
// Version '3.0.1' | ||
@@ -17,3 +17,3 @@ 'use strict'; | ||
s.VERSION = '3.0.0'; | ||
s.VERSION = '3.0.1'; | ||
@@ -20,0 +20,0 @@ s.isBlank = require('./isBlank'); |
{ | ||
"name": "underscore.string", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "String manipulation extensions for Underscore.js javascript library.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://epeli.github.com/underscore.string/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
56022
862
76