A TypeScript library for expanding flat JSON objects into nested structures based on dot-notation keys.
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);
{
"en": {
"title": "Hello World",
"description": "This is a description"
}
}
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.
Please consider:
- Buying me a coffee ☕
- Supporting Simply Hexagonal on Open Collective 🏆
- Starring this repo on Github 🌟
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.
Thanks goes to these wonderful people (emoji key):
Jean Lescure 🚧 💻 📓 |
Copyright (c) 2021-Present Exec Contributors.
Licensed under the Apache License 2.0.