Comparing version 2.0.0 to 2.1.0
@@ -1,6 +0,26 @@ | ||
/** | ||
* Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`. | ||
* | ||
* @param input - The string to titleize. | ||
*/ | ||
export default function titleize(input: string): string; | ||
declare const titleize: { | ||
/** | ||
Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`. | ||
@param input - The string to titleize. | ||
@example | ||
``` | ||
import titleize = require('titleize'); | ||
titleize('foo bar'); | ||
//=> 'Foo Bar' | ||
titleize('foo-bar'); | ||
//=> 'Foo-Bar' | ||
``` | ||
*/ | ||
(input: string): string; | ||
// TODO: Remove this for the next major release, refactor the whole definition to: | ||
// declare function titleize(input: string): string; | ||
// export = titleize; | ||
default: typeof titleize; | ||
}; | ||
export = titleize; |
@@ -11,2 +11,3 @@ 'use strict'; | ||
module.exports = titleize; | ||
// TODO: Remove this for the next major release | ||
module.exports.default = titleize; |
{ | ||
"name": "titleize", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava && tsd-check" | ||
"test": "xo && ava && tsd" | ||
}, | ||
@@ -36,6 +36,6 @@ "files": [ | ||
"devDependencies": { | ||
"ava": "^1.2.1", | ||
"tsd-check": "^0.3.0", | ||
"ava": "^1.4.1", | ||
"tsd": "^0.7.1", | ||
"xo": "^0.24.0" | ||
} | ||
} |
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
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
3187
30