@royalscome/electron-file-manage
v1.0.9-beta.4
Published
electron文件管理工具
Downloads
3
Readme
electron-file-manage
vue.config.js
configureWebpack(config) {
Object.assign(config, {
target: "electron-renderer",
});
}
npm install @royalscome/electron-file-manage
import { initLogger, logger } from "@royalscome/electron-file-manage";
initLogger(
success => {
console.log(success);
},
error => {
console.log(error);
}
)
window.logger = logger
logger(
tag,
content,
success => {
console.log(success);
},
error => {
console.log(error);
}
)
import { exists } from "@royalscome/electron-file-manage"
exists(
path,
success => {
console.log(success)
},
error => {
console.log(error)
}
)
import { mkdir } from "@royalscome/electron-file-manage"
mkdir(
path,
success => {
console.log(success)
},
error => {
console.log(error)
}
)
import { readFile } from "@royalscome/electron-file-manage"
readFile({
path,
format,
resolve,
reject
})
import { writeFile, appendFile } from "@royalscome/electron-file-manage"
writeFile({
path,
data,
options,
resolve,
reject
})
appendFile({
path,
data,
options,
resolve,
reject
})