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
- Host: GitHub
- URL: https://github.com/announce/cjt
- Owner: announce
- License: mit
- Created: 2018-06-04T00:52:50.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T03:45:20.000Z (over 2 years ago)
- Last Synced: 2025-01-10T05:29:23.439Z (about 1 year ago)
- Topics: csv, jira, table
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/cjt
- Size: 735 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cjt
[](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)