max-mapper / max-mapper/trim-object-stream

Case convesion

Open
#2 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hi there,
I'm in the need of a module that would do something very similar to what trim-object-stream does, but for converting cases. I read from CSV into JSON, and that gives me {"KEYS LIKE": "this"}, and I need them to be {"keys_like":"this"}.

So, I was wondering if this is an extension you'd accept a PR for. Given that this is a command line app, maybe providing something like --case=[camel | snake | …] and using https://github.com/nbubna/Case, for example, behind the scenes...

Let me know.
Cheers!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the command-line entry point and the existing trim-object-stream behavior, then assess how CSV-to-JSON key conversion would fit. Clarify the supported case names and expected handling of nested or unchanged keys; done means the selected case option converts the relevant JSON keys and has documented, tested behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.