{"id":17242793,"url":"https://github.com/imcuttle/open-one-window","last_synced_at":"2025-04-14T03:25:48.386Z","repository":{"id":45113292,"uuid":"183427311","full_name":"imcuttle/open-one-window","owner":"imcuttle","description":"Open the only one window","archived":false,"fork":false,"pushed_at":"2022-01-07T14:06:55.000Z","size":151,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T17:23:00.745Z","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/imcuttle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-04-25T12:12:38.000Z","updated_at":"2019-04-26T05:12:55.000Z","dependencies_parsed_at":"2022-09-19T14:21:16.977Z","dependency_job_id":null,"html_url":"https://github.com/imcuttle/open-one-window","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/imcuttle%2Fopen-one-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fopen-one-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fopen-one-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imcuttle%2Fopen-one-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imcuttle","download_url":"https://codeload.github.com/imcuttle/open-one-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248814708,"owners_count":21165809,"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-15T06:14:05.167Z","updated_at":"2025-04-14T03:25:48.365Z","avatar_url":"https://github.com/imcuttle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# open-one-window\n\n[![Build status](https://img.shields.io/travis/imcuttle/open-one-window/master.svg?style=flat-square)](https://travis-ci.org/imcuttle/open-one-window)\n[![Test coverage](https://img.shields.io/codecov/c/github/imcuttle/open-one-window.svg?style=flat-square)](https://codecov.io/github/imcuttle/open-one-window?branch=master)\n[![NPM version](https://img.shields.io/npm/v/open-one-window.svg?style=flat-square)](https://www.npmjs.com/package/open-one-window)\n[![NPM Downloads](https://img.shields.io/npm/dm/open-one-window.svg?style=flat-square\u0026maxAge=43200)](https://www.npmjs.com/package/open-one-window)\n[![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://prettier.io/)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)\n\n\u003e Open the only one window\n\n## Installation\n\n```bash\nnpm install open-one-window\n# or use yarn\nyarn add open-one-window\n```\n\n## Usage\n\n```javascript\nconst openOneWindow = require('open-one-window')\nconst oneWin = openOneWindow()\n\noneWin.open('http://example.com')\n```\n\n## API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### openOneWindow\n\n[index.js:7-7](https://github.com/imcuttle/open-one-window/blob/e7919136d669472fc0710d20139bf1653e0ba5fa/index.js#L7-L7 \"Source code on GitHub\")\n\n#### Parameters\n\n-   `options`  {{}}\n    -   `options.window`  {Window} (optional, default `global`)\n    -   `options.shouldFallback`  Fallback the way when the browser is not chrome, It's will open every times when `false` (optional, default `true`)\n\nReturns **[Window](https://developer.mozilla.org/docs/Web/API/Window)** \n\n## Contributing\n\n-   Fork it!\n-   Create your new branch:  \n    `git checkout -b feature-new` or `git checkout -b fix-which-bug`\n-   Start your magic work now\n-   Make sure npm test passes\n-   Commit your changes:  \n    `git commit -am 'feat: some description (close #123)'` or `git commit -am 'fix: some description (fix #123)'`\n-   Push to the branch: `git push`\n-   Submit a pull request :)\n\n## Authors\n\nThis library is written and maintained by imcuttle, \u003ca href=\"mailto:moyuyc95@gmail.com\"\u003emoyuyc95@gmail.com\u003c/a\u003e.\n\n## License\n\nMIT - [imcuttle](https://github.com/imcuttle) 🐟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fopen-one-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimcuttle%2Fopen-one-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimcuttle%2Fopen-one-window/lists"}