Skip to content

Instantly share code, notes, and snippets.

@emilong
Created October 28, 2020 22:31
Show Gist options
  • Save emilong/17d2c36c997fe40fab67d9ef5d4b8032 to your computer and use it in GitHub Desktop.
Save emilong/17d2c36c997fe40fab67d9ef5d4b8032 to your computer and use it in GitHub Desktop.
Expand YAML anchor merges
require "yaml"
require "json"
puts YAML.dump(JSON.load(YAML.load_file(ARGV.first).to_json))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment