{"id":2577744,"name":"window-size","ecosystem":"npm","description":"Reliable way to get the height and width of terminal/console, since it's not calculated or updated the same way on all platforms, environments and node.js versions.","homepage":"https://github.com/jonschlinkert/window-size","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/jonschlinkert/window-size","keywords_array":["columns","console","darwin","height","lines","redirected","resize","rows","size","term","term-size","terminal","tty","unix","width","win","window","windows"],"namespace":null,"versions_count":10,"first_release_published_at":"2014-02-15T03:41:48.322Z","latest_release_published_at":"2018-07-27T20:21:10.829Z","latest_release_number":"1.1.1","latest_published_release_number":"1.1.1","last_synced_at":"2026-10-21T19:20:48.695Z","created_at":"2022-04-10T03:46:55.052Z","updated_at":"2026-10-21T19:20:48.695Z","registry_url":"https://www.npmjs.com/package/window-size","install_command":"npm install window-size","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.1.1"},"contentPolicy":null},"repo_metadata":{"id":14150254,"uuid":"16855987","full_name":"jonschlinkert/window-size","owner":"jonschlinkert","description":"Reliable way to to get the height and width of the terminal/console in a node.js environment.","archived":false,"fork":false,"pushed_at":"2024-08-12T13:33:11.000Z","size":1152,"stargazers_count":85,"open_issues_count":2,"forks_count":15,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-10-13T12:58:55.965Z","etag":null,"topics":["cli","command-line","console","height","iterm","optimist","size","term","term-size","terminal","width","window","yargs"],"latest_commit_sha":null,"homepage":"https://github.com/jonschlinkert","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/jonschlinkert.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jonschlinkert"}},"created_at":"2014-02-15T03:42:28.000Z","updated_at":"2026-02-16T07:32:01.000Z","dependencies_parsed_at":"2024-11-18T07:13:52.922Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/window-size","commit_stats":{"total_commits":42,"total_committers":8,"mean_commits":5.25,"dds":0.5952380952380952,"last_synced_commit":"28f3e0ffba18846d5db4919a65804aa076e4ffc5"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/jonschlinkert/window-size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/sbom","scorecard":{"id":532196,"data":{"date":"2025-08-11","repo":{"name":"github.com/jonschlinkert/window-size","commit":"28f3e0ffba18846d5db4919a65804aa076e4ffc5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"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":"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":"Code-Review","score":1,"reason":"Found 3/19 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"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 15 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-20T05:58:37.192Z","repository_id":14150254,"created_at":"2025-08-20T05:58:37.192Z","updated_at":"2025-08-20T05:58:37.192Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344956071,"owners_count":38445720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-21T02:00:07.576Z","response_time":57,"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"},"owner_record":{"login":"jonschlinkert","name":"Jon Schlinkert","uuid":"383994","kind":"user","description":"Son of GitHub. Humble student of @doowb. Creator of @assemble @generate @enquirer @breakdance @update @micromatch","email":"","website":"https://www.linkedin.com/in/jonschlinkert/","location":"Cincinnati, OH","twitter":"jonschlinkert","company":"@brandscale ","icon_url":"https://avatars.githubusercontent.com/u/383994?u=335f06277f72722162e89bd5516849f2e82f37cf\u0026v=4","repositories_count":866,"last_synced_at":"2026-10-19T16:52:58.751Z","metadata":{"has_sponsors_listing":true,"funding":{"github":"jonschlinkert"}},"html_url":"https://github.com/jonschlinkert","funding_links":["https://github.com/sponsors/jonschlinkert"],"total_stars":27124,"followers":4974,"following":61,"created_at":"2022-11-02T16:18:54.193Z","updated_at":"2026-10-19T16:52:58.768Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert/repositories"},"tags":[{"name":"1.1.1","sha":"28f3e0ffba18846d5db4919a65804aa076e4ffc5","kind":"commit","published_at":"2018-07-27T20:19:18.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/1.1.1","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/1.1.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@1.1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/1.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/1.1.1/manifests"},{"name":"1.1.0","sha":"fe2d2c1f8603d187f7fee1cfdb0cd5cc72f1dd52","kind":"tag","published_at":"2017-06-23T15:14:48.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/1.1.0","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/1.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@1.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/1.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/1.1.0/manifests"},{"name":"1.0.0","sha":"e86bc3df4dd544bcdb067a79c98b15d878359a3b","kind":"tag","published_at":"2017-05-07T08:16:21.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/1.0.0","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@1.0.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/1.0.0/manifests"},{"name":"0.1.4","sha":"619d0da99254adc5c6059c84e3ec2b24564add46","kind":"tag","published_at":"2017-05-07T08:16:21.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/0.1.4","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/0.1.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@0.1.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.1.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.1.4/manifests"},{"name":"0.1.3","sha":"b5fb901f06df8982af9e0c6bdf7680985c455bea","kind":"tag","published_at":"2017-05-07T08:16:21.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/0.1.3","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/0.1.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@0.1.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.1.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.1.3/manifests"},{"name":"0.3.0","sha":"4e43a7002ec4d0a1540ea2716fd404b105080938","kind":"commit","published_at":"2016-12-10T18:21:01.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/0.3.0","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/0.3.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@0.3.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.3.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.3.0/manifests"},{"name":"0.2.0","sha":"538b4406a6f30c9a2c8f84ba38bb34a39775bd2b","kind":"tag","published_at":"2016-01-26T23:02:11.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/0.2.0","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/0.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@0.2.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.2.0/manifests"},{"name":"0.1.2","sha":"10a68f18582a1d11d6aef34398bf437cd548f971","kind":"tag","published_at":"2015-07-03T08:32:55.000Z","download_url":"https://codeload.github.com/jonschlinkert/window-size/tar.gz/0.1.2","html_url":"https://github.com/jonschlinkert/window-size/releases/tag/0.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/jonschlinkert/window-size@0.1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/tags/0.1.2/manifests"}]},"repo_metadata_updated_at":"2026-10-21T19:20:46.910Z","dependent_packages_count":358,"downloads":17882680,"downloads_period":"last-month","dependent_repos_count":1143835,"rankings":{"downloads":0.07363636134382437,"dependent_repos_count":0.02804794433225578,"dependent_packages_count":0.15251937175356928,"stargazers_count":5.264519195229236,"forks_count":5.730848905373534,"docker_downloads_count":0.07349626172178512,"average":1.8871780066257007},"purl":"pkg:npm/window-size","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/window-size","docker_dependents_count":4272,"docker_downloads_count":734996683,"usage_url":"https://repos.ecosyste.ms/usage/npm/window-size","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/window-size/dependencies","status":null,"funding_links":["https://github.com/sponsors/jonschlinkert"],"critical":null,"issue_metadata":{"last_synced_at":"2026-10-14T13:14:22.123Z","issues_count":9,"pull_requests_count":9,"avg_time_to_close_issue":2509273.625,"avg_time_to_close_pull_request":3587357.125,"issues_closed_count":8,"pull_requests_closed_count":8,"pull_request_authors_count":9,"issue_authors_count":9,"avg_comments_per_issue":4.333333333333333,"avg_comments_per_pull_request":2.7777777777777777,"merged_pull_requests_count":6,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Fwindow-size/issues","maintainers":[{"login":"doowb","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/doowb"},{"login":"jonschlinkert","count":1,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/jonschlinkert"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/window-size/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/window-size/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/window-size/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/window-size/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/window-size/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/window-size/codemeta","maintainers":[{"uuid":"doowb","login":"doowb","name":null,"email":"brian.woodward@gmail.com","url":null,"packages_count":816,"html_url":"https://www.npmjs.com/~doowb","role":null,"created_at":"2022-11-15T11:22:11.759Z","updated_at":"2022-11-15T11:22:11.759Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/doowb/packages"},{"uuid":"jonschlinkert","login":"jonschlinkert","name":null,"email":"github@sellside.com","url":null,"packages_count":1555,"html_url":"https://www.npmjs.com/~jonschlinkert","role":null,"created_at":"2022-11-15T11:22:11.801Z","updated_at":"2022-11-15T11:22:11.801Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/jonschlinkert/packages"}]}