fp-ts-node
v6.0.0
Published
fp-ts bindings for the Node.js
Downloads
8
Readme
fp-ts-node
fp-ts bindings for NodeJS.
Currently only export fs
module, but there's more to come.
File Systems (fs
)
For the fs
module, every API requires a path. Most API's can take options and some take data too.
The order of functions are curried as follows where possible. Calls and parameters are removed where possible.
type OurFunction = (
...parameters: Array<unknown>,
options?: {}
) => (data: unknown) => ReaderTaskEither<fs.PathLike, NodeJS.ErrnoException, A>;
Upcoming
If you're looking forward to any of these features, please advise in the discussions tab. This way we can justify our work with demand.
- [ ] Add exports
import { path as fs, fd as fs, bf as fs} from "fp-ts-node/fs"
, so users can specify onto file descriptor, path or buffer value API's. - [ ] NodeJS Versioning:
- Version to NodeJS based on latest version number
@types/node@^{14,16}
. - Export as
import { fs } from "fp-ts-node/14"
. - Export LTS (currently 14) to
import { fs } from "fp-ts-node
by default.
- Version to NodeJS based on latest version number