fp-ts-local-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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"}')

Package Sidebar

Install

npm i fp-ts-local-storage

Weekly Downloads

1,190

Version

1.0.3

License

MIT

Unpacked Size

7.03 kB

Total Files

8

Last publish

Collaborators

  • gcanti