An open API service indexing awesome lists of open source software.

https://github.com/announce/cjt

Library to convert CSV text to Jira's table notation
https://github.com/announce/cjt

csv jira table

Last synced: 4 months ago
JSON representation

Library to convert CSV text to Jira's table notation

Awesome Lists containing this project

README

          

# cjt
[![Build Status](https://travis-ci.org/announce/cjt.svg?branch=master)](https://travis-ci.org/announce/cjt)

A library to convert CSV text to Jira's table notation

## Usage

```js
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:

```txt
||heading 1||heading 2||heading 3||
|col A1|col A2|col A3|
|col B1|col B2|col B3|
```

## Installation

```
npm install --save-dev cjt
```

## Reference

- [Jira's table notation](https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=tables)
- [RFC 4180 \- Common Format and MIME Type for Comma\-Separated Values \(CSV\) Files](https://tools.ietf.org/html/rfc4180)

## Related App

- [cjt \- Chrome Web Store](https://chrome.google.com/webstore/detail/cjt/pagmnllnggjajagmlelanjlbompjelmd)