hughsk / hughsk/flat

Custom delimiter function

Open
#65 5 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
197
PR merge metrics
No merged PRs in 30d

Description

**Proposal**

Support passing `(string, string) => string` function as a delimiter option.

For example, for object:
```javascript
{
first: {
second: "hello"
}
}
```

and `delimiter`:
```javascript
(left, right) => left + right.charAt(0).toUpperCase() + right.slice(1);
```

it will produce camel case names:
```javascript
{
firstSecond: "hello"
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.