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
関連プロジェクトを探す
読み込み中…