import and export file of jcc
npm install jcc_file!npm



``shell`
npm install jcc_file
import file to get result, if we need, we also could decode qrcode image.
`javascript`
const importFile = require('jcc_file').importFile
// import { importFile } from 'jcc_file';
importFile(event, needConvert).then(res => {}).catch(error => {})
Parameters
- event- objectneedConvert
- - boolean
- if decode image
export text content to text file
`javascript`
const exportToText = require('jcc_file').exportToText
// import { exportToText } from 'jcc_file';
exportToText(text, name).then(() => {}).catch(error => {})
Parameters
- text- stringname
- - string
export text content to qrcode image
`javascript`
const exportToQR = require('jcc_file').exportToQR
// import { exportToQR } from 'jcc_file';
exportToQR(text, name).then(() => {}).catch(error => {})
Parameters
- text- stringname
- - string`