{"id":23725131,"url":"https://github.com/oderwat/nu_plugin_logfmt","last_synced_at":"2025-04-15T20:12:33.631Z","repository":{"id":266576677,"uuid":"898721907","full_name":"oderwat/nu_plugin_logfmt","owner":"oderwat","description":"A simple from / to logfmt plugin for nushell","archived":false,"fork":false,"pushed_at":"2025-01-16T21:00:18.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T05:17:47.797Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/oderwat.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}},"created_at":"2024-12-04T23:00:41.000Z","updated_at":"2025-01-16T20:58:52.000Z","dependencies_parsed_at":"2024-12-05T01:25:53.900Z","dependency_job_id":"deaad9e2-3725-4d05-b896-08cd39000f17","html_url":"https://github.com/oderwat/nu_plugin_logfmt","commit_stats":null,"previous_names":["oderwat/nu_plugin_logfmt"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Fnu_plugin_logfmt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Fnu_plugin_logfmt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Fnu_plugin_logfmt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oderwat%2Fnu_plugin_logfmt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oderwat","download_url":"https://codeload.github.com/oderwat/nu_plugin_logfmt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249145418,"owners_count":21219966,"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-12-31T00:01:42.974Z","updated_at":"2025-04-15T20:12:33.612Z","avatar_url":"https://github.com/oderwat.png","language":"Go","readme":"# Nu Plugin Logfmt\n\n## Overview\n\nThe `nu-plugin-logfmt` is a Nushell plugin that allows conversion between logfmt (a key=value format used by some logging systems) and Nushell\nvalues. The plugin provides two commands:\n\n1. **from logfmt**: Converts a logfmt string to a Nushell record.\n2. **to logfmt**: Converts a Nushell record to a logfmt string.\n\n### Steps to Install\n\nEnsure you have Go installed on your system. You can download it from [here](https://golang.org/dl/).\n\n   ```bash\n   go install github.com/oderwat/nu_plugin_logfmt@latest\n   plugin add ~/go/bin/nu_plugin_logfmt\n   plugin use logfmt\n   ```\n\nor move it to your nushell plugins directory if you have one for that.\n\n## Usage\n\n### from logfmt Command\n\nThe `from logfmt` command converts a logfmt string to a Nushell record.\n\nIf the `--typed` flag is given. The function detect simple types.\n\n**Syntax:**\n\n```nu\n\u003clogfmt_string\u003e | from logfmt [--typed]\n```\n\n**Example:**\n\n```nu\n'msg=\"Test message\" level=info esc=\"» Say \\\"Hello\\\"\"' | from logfmt\n```\n\n**Output:**\n\n```nu\n{\n  \"level\": \"info\",\n  \"msg\": \"Test message\",\n  \"esc\": \"» Say \\\"Hello\\\"\"\n}\n```\n\n### to logfmt Command\n\nThe `to logfmt` command converts a Nushell record to a logfmt string.\n\n**Syntax:**\n\n```nu\n\u003crecord\u003e | to logfmt\n```\n\n**Example:**\n\n```nu\n{ \"msg\": \"Hello World!\", \"Lang\": { \"Go\": true, \"Rust\": false } } | to logfmt\n```\n\n**Output:**\n\n```nu\nmsg=\"Hello World!\" Lang.Go=true Lang.Rust=false\n```\n\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foderwat%2Fnu_plugin_logfmt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foderwat%2Fnu_plugin_logfmt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foderwat%2Fnu_plugin_logfmt/lists"}