1.0.6 • Published 9 months ago

@simplyhexagonal/json-expand v1.0.6

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

@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):

License

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

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago