Methods
commit
- commit(callback: Callback): void
- commit(filters: any[], callback: Callback): void
-
Parameters
Returns void
-
Parameters
-
filters: any[]
-
callback: Callback
Returns void
copy
- copy(from: string, to: string, options?: __type): void
-
Parameters
-
from: string
-
to: string
-
Optional options: __type
Returns void
copyTpl
- copyTpl(from: string, to: string, context: __type, templateOptions?: __type, copyOptions?: __type): void
-
Parameters
-
from: string
-
to: string
-
context: __type
-
Optional templateOptions: __type
-
Optional copyOptions: __type
Returns void
delete
- delete(filepath: string, options?: __type): void
-
Parameters
-
filepath: string
-
Optional options: __type
Returns void
exists
- exists(filepath: string): boolean
-
Parameters
Returns boolean
extendJSON
- extendJSON(filepath: string, contents: __type, replacer?: function, space?: number): void
-
Parameters
-
filepath: string
-
contents: __type
-
Optional replacer: function
-
- (key: string, value: any): any
-
Optional space: number
Returns void
move
- move(from: string, to: string, options?: __type): void
-
Parameters
-
from: string
-
to: string
-
Optional options: __type
Returns void
read
- read(filepath: string, options?: __type): string
-
Parameters
-
filepath: string
-
Optional options: __type
Returns string
readJSON
- readJSON(filepath: string, defaults?: __type): any
-
Parameters
-
filepath: string
-
Optional defaults: __type
Returns any
write
- write(filepath: string, contents: string): void
-
Parameters
-
filepath: string
-
contents: string
Returns void
writeJSON
- writeJSON(filepath: string, contents: __type, replacer?: function, space?: number): void
-
Parameters
-
filepath: string
-
contents: __type
-
Optional replacer: function
-
- (key: string, value: any): any
-
Optional space: number
Returns void