Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-09T22:01:48.000Z (over 1 year ago)
- Last Synced: 2024-10-28T12:17:00.038Z (2 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
![webstorm64_Uorm66nvDN](https://user-images.githubusercontent.com/23381860/187271666-77b43d72-4c43-4058-8e3f-75b0b74af8bf.gif)