jcc_file

1.0.2 • Public • Published

jcc_file

npm Build Status Coverage Status npm downloads

Installtion

npm install jcc_file

API

importFile

import file to get result, if we need, we also could decode qrcode image.

const importFile = require('jcc_file').importFile
// import { importFile } from 'jcc_file';
importFile(event, needConvert).then(res => {}).catch(error => {})

Parameters

  • event- object

  • needConvert- boolean

    • if decode image

exportToText

export text content to text file

const exportToText = require('jcc_file').exportToText
// import { exportToText } from 'jcc_file';
exportToText(text, name).then(() => {}).catch(error => {})

Parameters

  • text- string
  • name- string

exportToQR

export text content to qrcode image

const exportToQR = require('jcc_file').exportToQR
// import { exportToQR } from 'jcc_file';
exportToQR(text, name).then(() => {}).catch(error => {})

Parameters

  • text- string
  • name- string

/jcc_file/

    Package Sidebar

    Install

    npm i jcc_file

    Weekly Downloads

    1

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    29.3 kB

    Total Files

    15

    Last publish

    Collaborators

    • jccdex