Created
January 18, 2018 00:05
-
-
Save allekmott/f41b33b830371d70a956378fe1aca86d to your computer and use it in GitHub Desktop.
Convert JS object string (arg) to JSON string
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
#!/usr/bin/env node | |
const json = eval(`(${process.argv[2]})`); | |
console.log(JSON.stringify(json)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment