0.0.1 • Published 4 years ago

functional-file v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

functional-file

functional-file

Index

Modules

functional-file

functional-file

Modules

functional-file"File"

Module: "File"

Index

Variables

Functions

Variables

Const getBufferFrom

getBufferFrom: function = pipe(getBufferFromIO, IOEUtils.fromIO)

Defined in File.ts:43

Type declaration:

▸ (path: string): IOEither‹Error, Buffer›

Parameters:

NameType
pathstring

Const getFileNameFromPath

getFileNameFromPath: function = pipe( split('/'), last )

Defined in File.ts:69

Type declaration:

▸ (path: string): string

Parameters:

NameType
pathstring

Const getFileNamesInFolder

getFileNamesInFolder: function = pipe( getFilenamesInFolderIO, IOEUtils.fromIO )

Defined in File.ts:53

Type declaration:

▸ (folder: string): IOEither‹Error, string[]›

Parameters:

NameType
folderstring

Const getFilePathsInFolder

getFilePathsInFolder: function = converge(curryN(2, compose), pipe(concat, IOE.map), getFileNamesInFolder, )

Defined in File.ts:61

Type declaration:

▸ (folder: string): IOEither‹Error, string[]›

Parameters:

NameType
folderstring

Const getFolderNameFromPath

getFolderNameFromPath: function = pipe( split('/'), dropLast(1), join('/'), flip(concat)('/') )

Defined in File.ts:75

Type declaration:

▸ (path: string): string

Parameters:

NameType
pathstring

Const saveBufferTo

saveBufferTo: function = pipe( saveBufferToIO, R.map(IOEUtils.fromIO) )

Defined in File.ts:30

Type declaration:

▸ (path: string): Reader‹Buffer, IOEither‹Error, string››

Parameters:

NameType
pathstring

Functions

Const getBufferFromIO

getBufferFromIO(path: string): (Anonymous function)

Defined in File.ts:38

Parameters:

NameType
pathstring

Returns: (Anonymous function)


Const saveBufferToIO

saveBufferToIO(path: string): (Anonymous function)

Defined in File.ts:22

Parameters:

NameType
pathstring

Returns: (Anonymous function)

functional-file"index"

Module: "index"

Index

References

References

getBufferFrom

getBufferFrom:


getBufferFromIO

getBufferFromIO:


getFileNameFromPath

getFileNameFromPath:


getFileNamesInFolder

getFileNamesInFolder:


getFilePathsInFolder

getFilePathsInFolder:


getFolderNameFromPath

getFolderNameFromPath:


saveBufferTo

saveBufferTo:


saveBufferToIO

saveBufferToIO:

functional-file"IOUtils"

Module: "IOUtils"

Index

Variables

Variables

Const fromIO

fromIO: function = partialRight(IOE.tryCatch, E.toError)

Defined in IOUtils.ts:7

Type declaration:

▸ <A>(io: IO‹A›): IOEither‹Error, A›

Type parameters:

A

Parameters:

NameType
ioIO‹A›