{"id":15066057,"url":"https://github.com/xenoatom/xenoatom.unixtools","last_synced_at":"2025-04-10T13:35:07.923Z","repository":{"id":256017101,"uuid":"853660469","full_name":"XenoAtom/XenoAtom.UnixTools","owner":"XenoAtom","description":"This project provides a set of Unix tools for .NET 8+","archived":false,"fork":false,"pushed_at":"2024-09-08T13:18:48.000Z","size":185,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-21T23:35:32.961Z","etag":null,"topics":["cpio","dotnet","unix"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/XenoAtom.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license.txt","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":["xoofx"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2024-09-07T06:59:25.000Z","updated_at":"2024-09-16T08:44:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"44dc5f95-ac23-4d5f-857e-0a2f6c1ce7d5","html_url":"https://github.com/XenoAtom/XenoAtom.UnixTools","commit_stats":null,"previous_names":["xenoatom/xenoatom.unixtools"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoAtom%2FXenoAtom.UnixTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoAtom%2FXenoAtom.UnixTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoAtom%2FXenoAtom.UnixTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XenoAtom%2FXenoAtom.UnixTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XenoAtom","download_url":"https://codeload.github.com/XenoAtom/XenoAtom.UnixTools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225878,"owners_count":21068079,"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":["cpio","dotnet","unix"],"created_at":"2024-09-25T01:00:44.834Z","updated_at":"2025-04-10T13:35:07.897Z","avatar_url":"https://github.com/XenoAtom.png","language":"C#","funding_links":["https://github.com/sponsors/xoofx"],"categories":[],"sub_categories":[],"readme":"# XenoAtom.UnixTools [![ci](https://github.com/XenoAtom/XenoAtom.UnixTools/actions/workflows/ci.yml/badge.svg)](https://github.com/XenoAtom/XenoAtom.UnixTools/actions/workflows/ci.yml) [![NuGet](https://img.shields.io/nuget/v/XenoAtom.UnixTools.svg)](https://www.nuget.org/packages/XenoAtom.UnixTools/)\n\n\u003cimg align=\"right\" width=\"160px\" height=\"160px\" src=\"https://raw.githubusercontent.com/XenoAtom/XenoAtom.UnixTools/main/img/XenoAtom.UnixTools.png\"\u003e\n\nThis project provides a set of Unix tools for .NET 8+.\n\n\u003e **Note**: This project is still in early development and the API is subject to change.\n\n## ✨ Features\n\n- **CPIO Archive**: Read and write CPIO archives (Only the newc format is supported)\n- **UnixInMemoryFileSystem**: A simple in-memory file system to manipulate files and directories\n  - This in memory filesystem can be used to easily manipulate in and out CPIO archives\n- .NET 8.0+ compatible and NativeAOT ready\n\n## 📖 Usage\n\nReading a CPIO archive:\n\n```csharp\nvar cpioReader = new CpioReader(File.OpenRead(\"archive.cpio\"));\nwhile (cpioReader.TryGetNextEntry(out var entry))\n{\n    Console.WriteLine($\"Entry: {entry.Name} {entry.FileType} ({entry.Mode})\");\n})\n```\n\nWriting a CPIO archive with a `UnixInMemoryFileSystem`:\n\n```csharp\nvar stream = new MemoryStream();\nvar fs = new UnixInMemoryFileSystem();\nfs.CreateDirectory(\"/dir1\");\nfs.CreateDirectory(\"/dir1/dir2\");\nfs.CreateFile(\"/dir1/file1.txt\", \"Hello World\");\n{\n    using var writer = new CpioWriter(File.Create(\"archive.cpio\"));\n    fs.WriteTo(writer);\n}\n```\n\n## 🪪 License\n\nThis software is released under the [BSD-2-Clause license](https://opensource.org/licenses/BSD-2-Clause). \n\n## 🤗 Author\n\nAlexandre Mutel aka [xoofx](https://xoofx.github.io).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenoatom%2Fxenoatom.unixtools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxenoatom%2Fxenoatom.unixtools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxenoatom%2Fxenoatom.unixtools/lists"}