{"id":28509841,"url":"https://github.com/choojs/nanohistory","last_synced_at":"2025-07-03T01:31:11.784Z","repository":{"id":57307970,"uuid":"88274085","full_name":"choojs/nanohistory","owner":"choojs","description":"Small browser history library","archived":false,"fork":false,"pushed_at":"2017-05-23T07:19:28.000Z","size":2,"stargazers_count":14,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T04:17:38.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/choojs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-14T14:24:15.000Z","updated_at":"2020-10-22T11:56:27.000Z","dependencies_parsed_at":"2022-09-09T01:00:59.299Z","dependency_job_id":null,"html_url":"https://github.com/choojs/nanohistory","commit_stats":null,"previous_names":["yoshuawuyts/nanohistory"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/choojs/nanohistory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanohistory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanohistory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanohistory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanohistory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/choojs","download_url":"https://codeload.github.com/choojs/nanohistory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/choojs%2Fnanohistory/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262893872,"owners_count":23380726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T22:37:28.760Z","updated_at":"2025-07-03T01:31:11.776Z","avatar_url":"https://github.com/choojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nanohistory [![stability][0]][1]\n[![npm version][2]][3] [![build status][4]][5]\n[![downloads][8]][9] [![js-standard-style][10]][11]\n\nSmall browser history library. Although you might as well just use the native\nDOM API (read the source and decide for yourself).\n\n## Usage\n```js\nvar nanohistory = require('nanohistory')\nnanohistory(function (location) {\n  console.log('new location is', location)\n})\n\n// Trigger the history API a couple of times\nwindow.history.pushState({}, null, '/foo')\nwindow.history.pushState({}, null, '/bar')\n```\n\n## API\n### `nanohistory(callback(location))`\nRegister a new history API listener. This will fire whenever the history API is\ntriggered.\n\n## License\n[MIT](https://tldrlegal.com/license/mit-license)\n\n[0]: https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square\n[1]: https://nodejs.org/api/documentation.html#documentation_stability_index\n[2]: https://img.shields.io/npm/v/nanohistory.svg?style=flat-square\n[3]: https://npmjs.org/package/nanohistory\n[4]: https://img.shields.io/travis/yoshuawuyts/nanohistory/master.svg?style=flat-square\n[5]: https://travis-ci.org/yoshuawuyts/nanohistory\n[6]: https://img.shields.io/codecov/c/github/yoshuawuyts/nanohistory/master.svg?style=flat-square\n[7]: https://codecov.io/github/yoshuawuyts/nanohistory\n[8]: http://img.shields.io/npm/dm/nanohistory.svg?style=flat-square\n[9]: https://npmjs.org/package/nanohistory\n[10]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\n[11]: https://github.com/feross/standard\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fnanohistory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchoojs%2Fnanohistory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchoojs%2Fnanohistory/lists"}