Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

titleize

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

titleize - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

32

index.d.ts

@@ -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;

8

package.json
{
"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"
}
}
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