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-24 05:23 UTC. Last push 2018-05-12.
Progression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
À propos
🏬 200b key-value store backed by navigation state
DonnéesREADME.md
Original
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
Explorer des projets similaires
Chargement…