Skip to content

yasthil/gtm-code-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

This is a simple script to convert GTM code to a JS-friendly syntax ensuring your code editor is happy.

Instructions

  • Copy gtmCodeFormatter.sh to local directory (you could have this somewhere convenient like ~/bashScripts/ or C:\)
  • To convert GTM code -> JS code
    • ./gtmCodeFormatter.sh FILE_NAME 'js'
  • To convert JS code -> GTM code
    • ./gtmCodeFormatter.sh FILE_NAME 'gtm'

About

Formats GTM code for text editors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages