https://github.com/hyper63/readert
https://github.com/hyper63/readert
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hyper63/readert
- Owner: hyper63
- Created: 2021-03-09T14:17:03.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-09T15:16:22.000Z (about 5 years ago)
- Last Synced: 2025-07-21T00:42:41.192Z (9 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
readerT
ReaderR is a Transformer Type that takes a Monad and allows the caller to embed
context that can be accessed during the transformation pipeline. This gives you the ability to
inject dependencies or configuration information at runtime.
---
## Table of Contents
- [Getting Started](#getting-started)
- [Installation](#installation)
- [Features](#features)
- [Methods](#methods)
- [Contributing](#contributing)
- [License](#license)
## Getting Started
see mod_test.ts
```ts
```
## Installation
This is a Deno module available to import from https://nest.land/package/readerT
deps.js
```
export { default as ReaderT } from 'https://x.nest.land/readerT@0.0.1/mod.js'
```
## Features
- runWith - inject config or dependencies in pipeline
- ask - during pipeline ask for dependencies
- lift - lift a monad into ReaderT
## Contributing
Pull Requests are welcome
## License
MIT
## Acknowledgements
This library was inspired by `Crocks` ReaderT implementation -
https://crocks.dev/docs/crocks/ReaderT.html