Created
March 23, 2022 12:31
-
-
Save Myllaume/24b7840f503f755007868f2f169ce068 to your computer and use it in GitHub Desktop.
Transform a YAML file into a JSON file at each edit with Nodemon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g js-yaml | |
npm install -g nodemon | |
nodemon --watch path/to/file.yml --exec 'js-yaml file.yml > file.json' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment