scss-to-json icon indicating copy to clipboard operation
scss-to-json copied to clipboard

Allow renaming variables via a new options.rename function

Open idpaterson opened this issue 7 years ago • 1 comments

This pull request adds a rename option expecting a function that, given the name of a variable in the final output, can return a modified name. As shown in the README example, I wanted to convert names to camel case for easier usability.

If a developer chooses to rename destructively such that two distinct variables could have the same name only the last value is included in the JSON output.

idpaterson avatar Aug 18 '16 15:08 idpaterson