0.0.4 • Published 2 years ago

@gauravachhani/file-electron v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@gauravachhani/file-electron

Plugin helps you to use remote, fs and path modules for electron 10+

Install

npm install @gauravachhani/file-electron
npx cap sync

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
ParamType
options{ value: string; }

Returns: Promise<{ value: string; }>


userPath()

userPath() => Promise<{ value: string; }>

Returns: Promise<{ value: string; }>


resolvePath(...)

resolvePath(options?: { target: string; source: string; } | undefined) => Promise<any>
ParamType
options{ target: string; source: string; }

Returns: Promise<any>


joinPath(...)

joinPath(options?: { target: string; source: string; } | undefined) => Promise<any>
ParamType
options{ target: string; source: string; }

Returns: Promise<any>


existsSync(...)

existsSync(path: string) => Promise<any>
ParamType
pathstring

Returns: Promise<any>


copyFile(...)

copyFile(source: string, target: string) => Promise<any>
ParamType
sourcestring
targetstring

Returns: Promise<any>


_mkdirSyncRecursive(...)

_mkdirSyncRecursive(source: string) => Promise<any>
ParamType
sourcestring

Returns: Promise<any>


_copyRecursiveSync(...)

_copyRecursiveSync(source: string, target: string) => Promise<any>
ParamType
sourcestring
targetstring

Returns: Promise<any>


writeFile(...)

writeFile(path: string, data: any, options: any) => Promise<any>
ParamType
pathstring
dataany
optionsany

Returns: Promise<any>


readFile(...)

readFile(path: string, options: any) => Promise<any>
ParamType
pathstring
optionsany

Returns: Promise<any>


moveFile(...)

moveFile(source: string, destination: string) => Promise<any>
ParamType
sourcestring
destinationstring

Returns: Promise<any>


removeFile(...)

removeFile(path: string) => Promise<any>
ParamType
pathstring

Returns: Promise<any>


renameFile(...)

renameFile(oldPath: string, oldName: string, newPath: string, newName: string) => Promise<any>
ParamType
oldPathstring
oldNamestring
newPathstring
newNamestring

Returns: Promise<any>


readdirSync(...)

readdirSync(path: string) => Promise<any>
ParamType
pathstring

Returns: Promise<any>


0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago