Created
April 16, 2016 19:51
-
-
Save masad-frost/31be43510e5a3e53f5b713ba00601272 to your computer and use it in GitHub Desktop.
https://repl.it/B42l/5 created by masfrost
This file contains hidden or 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
//CSS props to JS | |
//incomplete | |
let css = | |
` | |
`; | |
css = css.replace(/;/g, ','); | |
css = css.replace( /-([a-z])/ig, function( all, letter ) { | |
return letter.toUpperCase(); | |
}); | |
css = css.replace(/: /g, ': \'') | |
css = css.replace(/,\n/g, '\',\n') | |
console.log(css) |
This file contains hidden or 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
Babel Compiler v6.4.4 | |
Copyright (c) 2014-2015 Sebastian McKenzie |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment