Last active
January 10, 2017 12:41
-
-
Save timneutkens/f84a4166285c74e67744061414050647 to your computer and use it in GitHub Desktop.
Create empty csv (simple, for small lists)
This file contains 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
const list = ` | |
item1 | |
item2 | |
`.trim() | |
const translate = list.split('\n').map(item => `"${item}",""`).join('\n').trim() | |
console.log(translate) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment