Files
manolia-alpha/node_modules/fp-ts-local-storage/README.md
Robin COuret e0e50af706 init component
2026-02-16 17:28:37 +01:00

16 lines
374 B
Markdown

[fp-ts](https://github.com/gcanti/fp-ts) bindings for LocalStorage
# Documentation
- [API Reference](https://gcanti.github.io/fp-ts-local-storage)
# Example
```ts
import { setItem, getItem } from 'fp-ts-local-storage'
const program = setItem('foo', JSON.stringify({ bar: 'baz' })).chain(() => getItem('foo'))
console.log(program.run()) // => some('{"bar":"baz"}')
```