decamelize-keys

WebJar for decamelize-keys

License

License

MIT
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

decamelize-keys
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

decamelize-keys
WebJar for decamelize-keys
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/dsblv/decamelize-keys

Download decamelize-keys

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/decamelize-keys/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>decamelize-keys</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/decamelize-keys/
implementation 'org.webjars.npm:decamelize-keys:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/decamelize-keys/
implementation ("org.webjars.npm:decamelize-keys:1.1.0")
'org.webjars.npm:decamelize-keys:jar:1.1.0'
<dependency org="org.webjars.npm" name="decamelize-keys" rev="1.1.0">
  <artifact name="decamelize-keys" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='decamelize-keys', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "decamelize-keys" % "1.1.0"
[org.webjars.npm/decamelize-keys "1.1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : decamelize jar [1.1.0,2)
org.webjars.npm : map-obj jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

decamelize-keys Build Status

Convert object keys from camelCase to lowercase with a custom separator using decamelize

This project was forked from camelcase-keys and converted to do the opposite

Install

$ npm install --save decamelize-keys

Usage

const decamelizeKeys = require('decamelize-keys');

decamelizeKeys({fooBar: true}, '-');
//=> {'foo-bar': true}

API

decamelizeKeys(input, [separator], [options])

input

Type: object
Required

Object to decamelize.

separator

Type: string
Default: _

A string to insert between words.

options

Type: object

separator

Type: string
Default: _

Alternative way to specify separator.

exclude

Type: array
Default: []

Exclude keys from being decamelized.

Related

See camelcase-keys for the inverse.

License

MIT © Sindre Sorhus, Dmirty Sobolev

Versions

Version
1.1.0