Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 2.75 KB

README.md

File metadata and controls

69 lines (49 loc) · 2.75 KB

@simplyhexagonal/json-expand

npm GitHub Workflow Status License

A TypeScript library for expanding flat JSON objects into nested structures based on dot-notation keys.

Usage

import expand from '@simplyhexagonal/json-expand';

const input = JSON.stringify({
  "en.title": "Hello World",
  "en.description": "This is a description"
});

const output = expand(input);
console.log(output);

Output

{
  "en": {
    "title": "Hello World",
    "description": "This is a description"
  }
}

Open Source Notice

This project is open to updates by its users. We ensure that PRs are relevant to the community. In other words, if you find a bug or want a new feature, please help us by becoming one of the contributors ✌️! See the contributing section below.

Like this module? ❤

Please consider:

Contributing

Yes, thank you! This plugin is community-driven, most of its features are from different authors. Please update the docs and tests and add your name to the exec.json file.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jean Lescure

🚧 💻 📓 ⚠️ 💡 📖

License

Copyright (c) 2021-Present Exec Contributors.
Licensed under the Apache License 2.0.