fp-ts-local-storage
v1.0.3
Published
fp-ts bindings for LocalStorage
Downloads
3,048
Maintainers
Readme
fp-ts bindings for LocalStorage
Documentation
Example
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"}')