New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

object-key-casing

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-key-casing

Set object keys to be capitalized, uncapitalized, uppercase or lowercase.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

object-key-casing

Utilities and utility types to capitalize, uppercase, uncapitalize and lowercase object keys.

Utility Examples

const capitalized = capitalizeKeys({
	string: 'test'
});

// { String: 'test' }
const uppercased = uppercaseKeys({
	string: 'test'
});

// { STRING: 'test' }
const uncapitalized = uncapitalizeKeys({
	String: 'test'
});

// { string: 'test' }
const lowercased = lowercaseKeys({
	STRING: 'test'
});

// { string: 'test' }

Utility Type Examples

type Capitalized = CapitalizeKeys<{
	string: 'test'
}>;

// { String: 'test' }
type Uppercased = UppercaseKeys<{
	string: 'test'
}>;

// { STRING: 'test' }
type Uncapitalized = UncapitalizeKeys<{
	String: 'test'
}>;

// { string: 'test' }
type Lowercased = LowercaseKeys<{
	STRING: 'test'
}>;

// { string: 'test' }

Keywords

dynamodb

FAQs

Package last updated on 19 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts