{"library":"vhistory","type":"library","category":null,"description":"A JavaScript library for managing browser session history anywhere JavaScript runs. vhistory 1.0.1 is a repackaged version of the popular `history` library by ReactTraining, abstracting environment differences and providing a minimal API to manage the history stack, navigate, confirm navigation, and persist state between sessions. It supports ES6 import and CommonJS require, with a UMD build available on unpkg. Key differentiators: simple API with `createHistory`, `push`, `replace`, `listen`, `goBack`, and `goForward` methods; compatible with browser and server-side environments.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript","history","location"],"last_verified":"Fri May 01","install":[{"cmd":"npm install vhistory","imports":["import { createHistory } from 'vhistory'","const { createHistory } = require('vhistory')","const history = window.History.createHistory()"]},{"cmd":"yarn add vhistory","imports":[]},{"cmd":"pnpm add vhistory","imports":[]}],"homepage":null,"github":"https://github.com/vifird/history","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vhistory","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}