Skip to content

Instantly share code, notes, and snippets.

@Myllaume
Created March 23, 2022 12:31
Show Gist options
  • Save Myllaume/24b7840f503f755007868f2f169ce068 to your computer and use it in GitHub Desktop.
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
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