Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jccdex/jcc_file
a tool to export and import keystore file with jccdex wallet
https://github.com/jccdex/jcc_file
blockchain download-file import-file jccdex keystore qrcode-image wallet
Last synced: 17 days ago
JSON representation
a tool to export and import keystore file with jccdex wallet
- Host: GitHub
- URL: https://github.com/jccdex/jcc_file
- Owner: JCCDex
- License: mit
- Created: 2018-09-05T11:18:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-03T15:16:46.000Z (almost 2 years ago)
- Last Synced: 2024-12-14T00:33:35.917Z (18 days ago)
- Topics: blockchain, download-file, import-file, jccdex, keystore, qrcode-image, wallet
- Language: JavaScript
- Homepage:
- Size: 1.65 MB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jcc_file
![npm](https://img.shields.io/npm/v/jcc_file.svg)
[![Build Status](https://travis-ci.com/JCCDex/jcc_file.svg?branch=master)](https://travis-ci.com/JCCDex/jcc_file)
[![Coverage Status](https://coveralls.io/repos/github/JCCDex/jcc_file/badge.svg?branch=master)](https://coveralls.io/github/JCCDex/jcc_file?branch=master)
[![npm downloads](https://img.shields.io/npm/dm/jcc_file.svg)](http://npm-stat.com/charts.html?package=jcc_file)## Installtion
```shell
npm install jcc_file
```## API
### importFile
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`- `object`
- `needConvert`- `boolean`
- if decode image### exportToText
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`- `string`
- `name`- `string`### exportToQR
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`- `string`
- `name`- `string`