{"id":25535959,"url":"https://github.com/mosifa/command-to-json","last_synced_at":"2026-05-05T03:39:57.126Z","repository":{"id":65503339,"uuid":"591939386","full_name":"mosifa/command-to-json","owner":"mosifa","description":"Parses any commands and converts them to JSON","archived":false,"fork":false,"pushed_at":"2023-01-26T10:55:11.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T16:42:54.850Z","etag":null,"topics":["command-to-json","ifconfig","javascript","parser","tojson","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mosifa.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":"2023-01-22T12:23:02.000Z","updated_at":"2023-01-30T09:33:58.000Z","dependencies_parsed_at":"2023-02-14T15:45:45.390Z","dependency_job_id":null,"html_url":"https://github.com/mosifa/command-to-json","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosifa%2Fcommand-to-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosifa%2Fcommand-to-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosifa%2Fcommand-to-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosifa%2Fcommand-to-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mosifa","download_url":"https://codeload.github.com/mosifa/command-to-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239775881,"owners_count":19695016,"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":["command-to-json","ifconfig","javascript","parser","tojson","typescript"],"created_at":"2025-02-20T04:24:34.199Z","updated_at":"2026-01-29T03:30:13.809Z","avatar_url":"https://github.com/mosifa.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# command-to-json\n\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ca8c18cbe64e4811b602754cc0b44edd)](https://www.codacy.com/gh/mosifa/command-to-json/dashboard?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=mosifa/command-to-json\u0026amp;utm_campaign=Badge_Grade)\n[![npm version](https://badge.fury.io/js/command-to-json.svg)](https://badge.fury.io/js/command-to-json)\n\nParses any commands and converts them to JSON.\n\n## Table of Contents\n\n- [command-to-json](#command-to-json)\n  - [Installation](#installation)\n  - [Usage](#usage)\n  - [Supported commands](#supported-commands)\n  - [Release notes](#release-notes)\n\n## Installation\n\n```sh\nnpm install command-to-json --save\n```\n\n## Usage\n\n```ts\nimport { ifConfig } from 'command-to-json';\n\nconst output = `\ndocker0: flags=4099\u003cUP,BROADCAST,MULTICAST\u003e  mtu 1500\n    inet 172.0.0.1  netmask 255.255.0.0  broadcast 172.0.0.255\n    ether 01:01:01:01:01:01  txqueuelen 0  (Ethernet)\n`;\n\nconst result = ifConfig.parse(output);\n/**\n * result:\n [\n    {\n      name: 'docker0',\n      flags: [ '4099', 'UP', 'BROADCAST', 'MULTICAST' ],\n      mtu: '1500',\n      inet: '172.0.0.1',\n      netmask: '255.255.0.0',\n      broadcast: '172.0.0.255',\n      ether: '01:01:01:01:01:01',\n      txqueuelen: '0'\n    }\n  ]\n */\n\n```\n\n## Supported commands\n[if-config](https://en.wikipedia.org/wiki/Ifconfig)\n\n## Release notes\n\nSee information about breaking changes and release notes [here][1].\n\n[1]: CHANGELOG.md","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosifa%2Fcommand-to-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosifa%2Fcommand-to-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosifa%2Fcommand-to-json/lists"}