Skip to content

Instantly share code, notes, and snippets.

@timneutkens
Last active January 10, 2017 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timneutkens/f84a4166285c74e67744061414050647 to your computer and use it in GitHub Desktop.
Save timneutkens/f84a4166285c74e67744061414050647 to your computer and use it in GitHub Desktop.
Create empty csv (simple, for small lists)
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