{"id":13541314,"url":"https://github.com/JosephTLyons/nu_plugin_units","last_synced_at":"2025-04-02T08:31:02.450Z","repository":{"id":209385501,"uuid":"723930449","full_name":"JosephTLyons/nu_plugin_units","owner":"JosephTLyons","description":"A Nushell plugin for easily converting between common units.","archived":false,"fork":false,"pushed_at":"2024-12-23T04:57:49.000Z","size":167,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T23:52:16.003Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/JosephTLyons.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-27T03:42:16.000Z","updated_at":"2025-03-23T14:09:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0dc9e07-b4b1-4e33-835a-dfcda5d0f751","html_url":"https://github.com/JosephTLyons/nu_plugin_units","commit_stats":null,"previous_names":["josephtlyons/nu_plugin_units"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fnu_plugin_units","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fnu_plugin_units/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fnu_plugin_units/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JosephTLyons%2Fnu_plugin_units/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JosephTLyons","download_url":"https://codeload.github.com/JosephTLyons/nu_plugin_units/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246781973,"owners_count":20832946,"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-08-01T10:00:43.720Z","updated_at":"2025-04-02T08:31:02.065Z","avatar_url":"https://github.com/JosephTLyons.png","language":"Rust","readme":"# nu_plugin_units\n\nA [Nushell](https://www.nushell.sh) plugin for easily converting between common units.\n\n## Installation\n\n1. Clone this repository\n2. Build the target via `cargo build --release`\n3. Add the plugin to nushell using the following nushell command `plugin add ./target/release/nu_plugin_units`\n4. Reload the plugin using `plugin use units`\n\n## Usage\n\n```shell\n〉units -c time -u years -v 1\n╭────┬──────────────┬────────────────────────╮\n│  # │     unit     │         value          │\n├────┼──────────────┼────────────────────────┤\n│  0 │ centuries    │                 0.0100 │\n│  1 │ days         │               365.0000 │\n│  2 │ decades      │                 0.1000 │\n│  3 │ hours        │              8760.0000 │\n│  4 │ microseconds │    31540000000000.0000 │\n│  5 │ milliseconds │       31556952000.0000 │\n│  6 │ minutes      │            525600.0000 │\n│  7 │ months       │                12.0000 │\n│  8 │ nanoseconds  │ 31540000000000000.0000 │\n│  9 │ seconds      │          31536000.0000 │\n│ 10 │ weeks        │                52.1430 │\n│ 11 │ years        │                 1.0000 │\n╰────┴──────────────┴────────────────────────╯\n```\n\nYou may want to consider adjusting the value of `float_precision` in your nushell config file.\n\n```nu\n$env.config = {\n    float_precision: 4\n    ...\n}\n```\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosephTLyons%2Fnu_plugin_units","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJosephTLyons%2Fnu_plugin_units","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJosephTLyons%2Fnu_plugin_units/lists"}