{"id":13432020,"url":"https://github.com/feross/location-history","last_synced_at":"2025-10-14T10:07:24.267Z","repository":{"id":62354809,"uuid":"64441249","full_name":"feross/location-history","owner":"feross","description":"Lightweight browser location history abstraction","archived":false,"fork":false,"pushed_at":"2020-05-25T04:26:17.000Z","size":18,"stargazers_count":69,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-13T01:40:53.849Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/feross.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":"2016-07-29T01:46:40.000Z","updated_at":"2024-09-25T09:11:03.000Z","dependencies_parsed_at":"2022-10-31T10:46:34.657Z","dependency_job_id":null,"html_url":"https://github.com/feross/location-history","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/feross/location-history","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Flocation-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Flocation-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Flocation-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Flocation-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feross","download_url":"https://codeload.github.com/feross/location-history/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feross%2Flocation-history/sbom","scorecard":{"id":397616,"data":{"date":"2025-08-11","repo":{"name":"github.com/feross/location-history","commit":"d1135b16b259cfaf696feb3edf927bf65580effc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/17 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T19:23:47.638Z","repository_id":62354809,"created_at":"2025-08-18T19:23:47.638Z","updated_at":"2025-08-18T19:23:47.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018738,"owners_count":26086449,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-07-31T02:01:07.920Z","updated_at":"2025-10-14T10:07:24.246Z","avatar_url":"https://github.com/feross.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# location-history [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]\n\n[travis-image]: https://img.shields.io/travis/feross/location-history/master.svg\n[travis-url]: https://travis-ci.org/feross/location-history\n[npm-image]: https://img.shields.io/npm/v/location-history.svg\n[npm-url]: https://npmjs.org/package/location-history\n[downloads-image]: https://img.shields.io/npm/dm/location-history.svg\n[downloads-url]: https://npmjs.org/package/location-history\n[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg\n[standard-url]: https://standardjs.com\n\n### Lightweight browser location history abstraction\n\nWorks in the browser with [browserify](http://browserify.org/)! This module is used by [WebTorrent Desktop](http://webtorrent.io/desktop).\n\n## install\n\n```\nnpm install location-history\n```\n\n## usage\n\n```js\nvar LocationHistory = require('location-history')\n\nvar location = new LocationHistory()\n\n// Navigate to a page\nlocation.go({ url: 'first-url', data: 'hi' })\n\nconsole.log(location.current()) // { url: 'first-url', data: 'hi' }\nconsole.log(location.url()) // 'first-url'\n\n// Navigate to a second page\nlocation.go({ url: 'second-url' })\n\nconsole.log(location.url()) // 'second-url'\n\n// Go back one page\nlocation.back()\n\nconsole.log(location.url()) // 'first-url'\n\n// Go forward one page\nlocation.forward()\n\nconsole.log(location.url()) // 'second-url'\n```\n\n## api\n\n### `location = LocationHistory()`\n\nCreate a new location history instance.\n\n### `location.current()`\n\nReturns the current page object.\n\n### `location.url()`\n\nReturn the current page object's `url` property.\n\n### `location.go(page, [callback])`\n\nNavigate to a new page. `page` should be an object with a `url` property.\n\nOptionally, specify a `setup` function property to be called before the page\nbecomes the current one. `setup` will be passed a `callback` function that should\nbe called with a `null` or `Error` object as the first property.\n\n```js\nlocation.go({\n  url: 'my-url',\n  setup: function (cb) {\n    setTimeout(function () { // ... do any async operations\n      cb(null)\n    }, 100)\n  }\n})\n```\n\nOptionally, specify a `destroy` function property to be called after the page is\nreplaced with another one.\n\n```js\nlocation.go({\n  url: 'my-url',\n  destroy: function () {\n    // ... do any cleanup operations\n  }\n})\n```\n\n### `location.back([callback])`\n\nNavigate to the previous page. If there is no previous page, this does nothing.\n\nOptionally, specify a `callback` function to be called after the next page is\nloaded (in case it has a `setup` function).\n\n### `location.forward([callback])`\n\nNavigate to the forward page. If there is no forward page, this does nothing.\n\nOptionally, specify a `callback` function to be called after the next page is\nloaded (in case it has a `setup` function).\n\n### `location.cancel([callback])`\n\nNavigate to the previous page, and remove the current page from the history. If\nthere is no previous page, this does nothing.\n\nIf you want the current page to stay in history (accessible via `forward()`), see\n`back()`.\n\nOptionally, specify a `callback` function to be called after the next page is\nloaded (in case it has a `setup` function).\n\n### `location.hasBack()`\n\nReturns `true` if there is a previous page, else `false`.\n\n### `location.hasForward()`\n\nReturns `true` if there is a forward page, else `false`.\n\n### `location.backToFirst([callback])`\n\nNavigate to the first page. Optionally, specify a `callback` function to be\ncalled after the first page is loaded.\n\n### `location.clearForward([url])`\n\nClear all forward pages. Useful in situations where the forward page no longer\nexists in the app.\n\nOptionally, specify a `url` and only pages with the given `url` will be removed.\n\n## license\n\nMIT. Copyright (c) [Feross Aboukhadijeh](http://feross.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Flocation-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeross%2Flocation-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeross%2Flocation-history/lists"}