A library to convert CSV text to Jira's table notation
const cjt = require('cjt')
csv = `
heading 1,heading 2,heading 3
col A1,col A2,col A3
col B1,col B2,col B3
`
console.log(cjt.convert(csv))
Output:
||heading 1||heading 2||heading 3||
|col A1|col A2|col A3|
|col B1|col B2|col B3|
npm install --save-dev cjt