update README for package name change
This commit is contained in:
parent
9ee5cb8a82
commit
5ff0e3d079
1 changed files with 6 additions and 6 deletions
12
README.md
12
README.md
|
@ -4,14 +4,14 @@ Read mbox files.
|
|||
|
||||
WARNING: This library is a personal project to learn Gleam. It is *extremely* incomplete, barely works, highly *un* - optimized, and is NOT guaranteed to work, in present or future. I do intend to make it useable and utilise in another project, but right now, if you use it and it breaks stuff, you get to keep all the pieces. Be warned and prosper.
|
||||
|
||||
[![Package Version](https://img.shields.io/hexpm/v/mbox)](https://hex.pm/packages/mbox)
|
||||
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/mbox/)
|
||||
[![Package Version](https://img.shields.io/hexpm/v/mbox)](https://hex.pm/packages/gleambox)
|
||||
[![Hex Docs](https://img.shields.io/badge/hex-docs-ffaff3)](https://hexdocs.pm/gleambox/)
|
||||
|
||||
```sh
|
||||
gleam add mbox
|
||||
```
|
||||
```gleam
|
||||
import mbox
|
||||
import gleambox
|
||||
import simplifile
|
||||
|
||||
pub fn main() {
|
||||
|
@ -21,17 +21,17 @@ pub fn main() {
|
|||
|> result.unwrap(or: "")
|
||||
|
||||
mboxcontents
|
||||
|> mbox.get_headers
|
||||
|> gleambox.get_headers
|
||||
|> dict.to_list
|
||||
|> list.map(io.debug)
|
||||
|
||||
mboxcontents
|
||||
|> mbox.get_body
|
||||
|> gleambox.get_body
|
||||
|> io.println
|
||||
}
|
||||
```
|
||||
|
||||
Further documentation can be found at <https://hexdocs.pm/mbox>.
|
||||
Further documentation can be found at <https://hexdocs.pm/gleambox>.
|
||||
|
||||
## Development
|
||||
|
||||
|
|
Loading…
Reference in a new issue