{"id":17419838,"url":"https://github.com/bendrucker/location-href","last_synced_at":"2025-07-21T04:31:53.192Z","repository":{"id":35979988,"uuid":"40271423","full_name":"bendrucker/location-href","owner":"bendrucker","description":"Simple Node-friendly interface to the browser's location","archived":false,"fork":false,"pushed_at":"2018-11-13T19:30:17.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T22:39:18.872Z","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/bendrucker.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":"2015-08-05T22:16:00.000Z","updated_at":"2023-02-09T14:48:47.000Z","dependencies_parsed_at":"2022-07-08T15:18:50.149Z","dependency_job_id":null,"html_url":"https://github.com/bendrucker/location-href","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Flocation-href","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Flocation-href/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Flocation-href/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendrucker%2Flocation-href/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendrucker","download_url":"https://codeload.github.com/bendrucker/location-href/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226867826,"owners_count":17694818,"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":"2024-10-17T02:34:14.418Z","updated_at":"2024-11-28T06:16:51.699Z","avatar_url":"https://github.com/bendrucker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# location-href [![Build Status](https://travis-ci.org/bendrucker/location-href.svg?branch=master)](https://travis-ci.org/bendrucker/location-href)\n\n\u003e Simple Node-friendly interface to the browser's `location`\n\n\n## Install\n\n```\n$ npm install --save location-href\n```\n\n\n## Usage\n\n```js\nvar location = require('location-href')\nlocation()\n//=\u003e http://the/current/location\nlocation.set('http://new/location')\n//=\u003e browser transitions to new location\n```\n\n## API\n\n#### `location()` -\u003e `string`\n\nCall to get the current location.\n\n#### `location.set(href)` -\u003e `undefined`\n\n##### href\n\n*Required*  \nType: `string`\n\nThe new location.\n\n\n## License\n\nMIT © [Ben Drucker](http://bendrucker.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Flocation-href","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendrucker%2Flocation-href","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendrucker%2Flocation-href/lists"}