{"id":20847366,"url":"https://github.com/zingerlittlebee/port-killer-rs","last_synced_at":"2025-05-12T02:31:21.178Z","repository":{"id":40348281,"uuid":"489605920","full_name":"ZingerLittleBee/port-killer-rs","owner":"ZingerLittleBee","description":"port killer for rust","archived":false,"fork":false,"pushed_at":"2024-02-11T20:57:56.000Z","size":24,"stargazers_count":1,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T20:11:51.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://crates.io/crates/port-killer","language":"Rust","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/ZingerLittleBee.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}},"created_at":"2022-05-07T07:43:54.000Z","updated_at":"2023-03-02T17:40:46.000Z","dependencies_parsed_at":"2023-01-23T07:46:00.257Z","dependency_job_id":"625df2b9-1ca4-4bd6-8a27-801e37116552","html_url":"https://github.com/ZingerLittleBee/port-killer-rs","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":"0.23529411764705888","last_synced_commit":"3f944e868643724b7fa5015d82ab784b5d65155a"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZingerLittleBee%2Fport-killer-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZingerLittleBee%2Fport-killer-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZingerLittleBee%2Fport-killer-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZingerLittleBee%2Fport-killer-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZingerLittleBee","download_url":"https://codeload.github.com/ZingerLittleBee/port-killer-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225115860,"owners_count":17423156,"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-11-18T02:19:45.228Z","updated_at":"2024-11-18T02:19:46.279Z","avatar_url":"https://github.com/ZingerLittleBee.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Language : 🇺🇸 English | [🇨🇳 简体中文](./README.zh-CN.md)\n\n\u003ch1 align=\"center\"\u003eport-killer\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![Build Status](https://img.shields.io/crates/v/port-killer)](https://crates.io/crates/port-killer)\n![Crates Downloads](https://img.shields.io/crates/d/port-killer)\n![Last Commit](https://img.shields.io/github/last-commit/ZingerLittleBee/port-killer-rs)\n\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![Docs](https://img.shields.io/docsrs/port-killer)](https://docs.rs/port-killer/0.1.0/port_killer/)\n[![GitHub Actions Analyze](https://img.shields.io/github/workflow/status/ZingerLittleBee/port-killer-rs/rust-clippy%20analyze)](https://github.com/ZingerLittleBee/port-killer-rs/actions)\n[![LICENSE](https://img.shields.io/crates/l/port-killer)](./LICENSE)\n\n\u003c/div\u003e\n\n## Overview\nport-killer is a rust library that provides functions to **clear port occupancy** and **kill processes**.\n\n## Installation\n1. Get the latest version -\u003e https://crates.io/crates/port-killer\n\n2. Add the dependent\n```toml\n[dependencies]\nport-killer = \"0.1.0\"\n```\n\n3. Usage\n```rust\nuse port_killer::{kill, kill_by_pids};\n\nfn main() {\n    assert!(kill(5000).expect(\"\"));\n    assert!(kill_by_pids(\u0026[56812]).expect(\"\"));\n}\n```\n\n## Goods\nfn -\u003e [kill](#kill) · [kill_by_pids](#kill_by_pids)\n\n## Documentation\n### `kill`\nClear port occupancy by port\n```rust\npub fn kill(port: u16) -\u003e Result\u003cbool, Error\u003e\n```\n\n### `kill_by_pids`\nKill processes based on pids\n```rust\npub fn kill_by_pids(pids: \u0026[u32]) -\u003e Result\u003cbool, Error\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingerlittlebee%2Fport-killer-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzingerlittlebee%2Fport-killer-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzingerlittlebee%2Fport-killer-rs/lists"}