react-curd-antd
v1.0.5
Published
A react ui components for antd.
Downloads
10
Maintainers
Readme
react-curd-antd
A react ui components for antd.
Install
npm i react-curd-antd --save
//or
yarn add react-curd-antd
Example
const FileCrypt = require("react-curd-antd");
async function test() {
try {
const fc = new FileCrypt("fage");
let result = await fc.encrypt("package.json", "./tmp/package-aes.json");
console.log("encrypt ok");
result = await fc.decrypt("./tmp/package-aes.json", "./temp/package2.json");
console.log("decrypt ok");
} catch (e) {
console.log(e);
}
}
test().then((t) => {});
APIs
/// encrypt file
/// @fileFrom=source file path
/// @fileTo=dist encrypt file path
encrypt(fileFrom:string, fileTo:string):Promise<void>;
/// decrypt file
/// @fileFrom=source encrypt file path
/// @fileTo=dist source file path
decrypt(fileFrom:string, fileTo:string):Promise<void>;