https://github.com/levelupjosh-dev/metamorphism
Allows you to alter the composition of data.
https://github.com/levelupjosh-dev/metamorphism
cli json md metadata xml
Last synced: 4 months ago
JSON representation
Allows you to alter the composition of data.
- Host: GitHub
- URL: https://github.com/levelupjosh-dev/metamorphism
- Owner: LevelUpJosh-dev
- License: mit
- Created: 2022-08-24T20:41:04.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T22:01:48.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T17:48:29.757Z (4 months ago)
- Topics: cli, json, md, metadata, xml
- Language: JavaScript
- Homepage:
- Size: 1.86 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# metamorphism
### Alter the composition of data.
---
### Setup Steps
1. Download the repository to your local machine.
2. Open the repo in your favorite IDE or open a CLI within the repo root.
3. Run npm install
4. Run any of the below commands to try the example files or use your own file path.---
#### Available Methods
Note: Currently validation is not run against the output. So if you pass it a json file to parse to toml for example if you had duplicate keys is the JSON it would provide you a TOML representation of the data however duplicates keys are not valid in TOML meaning the output is not valid TOML. I have plans to add input validation in the future.
##### xmlify_json
- Example: ```node index.js xmlify_json --path "./examples/json/xml.json"```
##### jsonify_xml
- Example: ```node index.js jsonify_xml --path "./examples/xml/b2b.xml"```
##### yamlify_json
- Example: ```node index.js yamlify_json --path "./examples/json/xml.json"```
##### tomlify_json
- Example: ```node index.js tomlify_json --path "./examples/json/xml.json"```
##### htmlify_markdown
- Example: ```node index.js htmlify_markdown --path "./examples/markdown/example.md"```#### Quick Demo
