@gauravachhani/file-electron
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@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; }>
Param Type
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>
Param Type
options { target: string; source: string; }

Returns: Promise<any>


joinPath(...)

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

Returns: Promise<any>


existsSync(...)

existsSync(path: string) => Promise<any>
Param Type
path string

Returns: Promise<any>


copyFile(...)

copyFile(source: string, target: string) => Promise<any>
Param Type
source string
target string

Returns: Promise<any>


_mkdirSyncRecursive(...)

_mkdirSyncRecursive(source: string) => Promise<any>
Param Type
source string

Returns: Promise<any>


_copyRecursiveSync(...)

_copyRecursiveSync(source: string, target: string) => Promise<any>
Param Type
source string
target string

Returns: Promise<any>


writeFile(...)

writeFile(path: string, data: any, options: any) => Promise<any>
Param Type
path string
data any
options any

Returns: Promise<any>


readFile(...)

readFile(path: string, options: any) => Promise<any>
Param Type
path string
options any

Returns: Promise<any>


moveFile(...)

moveFile(source: string, destination: string) => Promise<any>
Param Type
source string
destination string

Returns: Promise<any>


removeFile(...)

removeFile(path: string) => Promise<any>
Param Type
path string

Returns: Promise<any>


renameFile(...)

renameFile(oldPath: string, oldName: string, newPath: string, newName: string) => Promise<any>
Param Type
oldPath string
oldName string
newPath string
newName string

Returns: Promise<any>


readdirSync(...)

readdirSync(path: string) => Promise<any>
Param Type
path string

Returns: Promise<any>


Readme

Keywords

Package Sidebar

Install

npm i @gauravachhani/file-electron

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

52.4 kB

Total Files

26

Last publish

Collaborators

  • dragon-dev