developit/histore
developit/histore has 671 GitHub stars and 19 forks. GitHot measured 0 stars in 24 hours, 0 in 7 days, and 0 in 15 days. Last checked 2026-11-23 03:52 UTC. Last push 2018-05-12.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
关于
🏬 200b key-value store backed by navigation state
数据README.md
原文
Histore
Histore [his·to·ry]: a 200b key-value store backed by navigation state.
Does the fact that sessionStorage/localStorage is shared across tabs have you down?
Don't worry, here's a strange but widely supported way to store 640kb of object data in a page's navigation state.
Usage
import histore from 'histore'
let storage = histore()
storage.set('foo', 'bar')
storage.get('foo') // 'bar'
storage.set('obj', { any: 'object' })
storage.get('obj').any // 'object'
Interestingly, due to the way history.replaceState works, storing objects will implicitly clone them using the Structured Clone algorithm.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Changelog
Every release, along with the migration instructions, is documented on the Github Releases page.
License
探索相关项目
加载中…