{"id":19407756,"url":"https://github.com/brianary/detextive","last_synced_at":"2026-03-12T01:34:47.216Z","repository":{"id":89782425,"uuid":"403469004","full_name":"brianary/Detextive","owner":"brianary","description":"Investigates data to determine what the textual characteristics are.","archived":false,"fork":false,"pushed_at":"2025-03-11T05:16:32.000Z","size":690,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T09:56:54.837Z","etag":null,"topics":["editorconfig","encoding","fsharp","indentation","powershell","powershell-module","text"],"latest_commit_sha":null,"homepage":"https://www.powershellgallery.com/packages/Detextive/","language":"F#","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/brianary.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,"zenodo":null}},"created_at":"2021-09-06T03:05:43.000Z","updated_at":"2025-03-11T05:16:32.000Z","dependencies_parsed_at":"2025-03-11T05:34:38.411Z","dependency_job_id":null,"html_url":"https://github.com/brianary/Detextive","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"brianary/PSModuleTemplate","purl":"pkg:github/brianary/Detextive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FDetextive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FDetextive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FDetextive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FDetextive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianary","download_url":"https://codeload.github.com/brianary/Detextive/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianary%2FDetextive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30412004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T00:40:14.898Z","status":"ssl_error","status_checked_at":"2026-03-12T00:40:08.439Z","response_time":84,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["editorconfig","encoding","fsharp","indentation","powershell","powershell-module","text"],"created_at":"2024-11-10T12:03:41.835Z","updated_at":"2026-03-12T01:34:47.196Z","avatar_url":"https://github.com/brianary.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Detextive\r\n=========\r\n\r\n\u003c!-- To publish to PowerShell Gallery, commit an update to the .psd1 file --\u003e\r\n\u003cimg src=\"Detextive.svg\" alt=\"Detextive icon\" align=\"right\" /\u003e\r\n\r\n[![PowerShell Gallery Version](https://img.shields.io/powershellgallery/v/Detextive)](https://www.powershellgallery.com/packages/Detextive/)\r\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/Detextive)](https://www.powershellgallery.com/packages/Detextive/)\r\n[![Actions Status](https://github.com/brianary/Detextive/workflows/.NET%20Core/badge.svg)](https://github.com/brianary/Detextive/actions)\r\n\r\nInvestigates data to determine what the textual characteristics are.\r\n\r\nThe [ratios][] are still fairly arbirtrary, and will need more sample/test data to mature.\r\nIn addition, it may skew anglocentric in assuming primarily US-ASCII characters when\r\ndetermining encoding based on byte value frequency.\r\n\r\nTo install: `Install-Module Detextive`\r\n\r\n![example usage of Detextive](Detextive.gif)\r\n\r\nUsing the [editorconfig library][] to support [editorconfig][] settings.\r\n\r\n[ratios]: src/Detextive/Ratio.fs \"Constants used for ratios in byte value data analysis.\"\r\n[editorconfig library]: https://github.com/editorconfig/editorconfig-core-net \"EditorConfig Core library and command line utility written in C# for .NET/Mono http://editorconfig.org\"\r\n[editorconfig]: https://editorconfig.org/ \"EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.\"\r\n\r\n\u003c!-- [PowerShell dev guidelines]: https://docs.microsoft.com/powershell/scripting/developer/cmdlet/strongly-encouraged-development-guidelines --\u003e\r\n\r\nCmdlets\r\n-------\r\n\r\nDocumentation is automatically generated using [platyPS](https://github.com/PowerShell/platyPS) (`.\\doc.cmd`).\r\n\r\n- [Add-Utf8Signature](docs/Add-Utf8Signature.md) — Adds the utf-8 signature (BOM) to a file.\r\n- [Get-FileContentsInfo](docs/Get-FileContentsInfo.md) — Returns whether the file is binary or text, and what encoding, line endings, and indents text files contain.\r\n- [Get-FileEditorConfig](docs/Get-FileEditorConfig.md) — Looks up the editorconfig values set for a file.\r\n- [Get-FileEncoding](docs/Get-FileEncoding.md) — Returns the detected encoding of a file.\r\n- [Get-FileIndents](docs/Get-FileIndents.md) — Returns details about a file's indentation characters.\r\n- [Get-FileLineEndings](docs/Get-FileLineEndings.md) — Returns details about a file's line endings.\r\n- [Remove-Utf8Signature](docs/Remove-Utf8Signature.md) — Removes the utf-8 signature (BOM) from a file.\r\n- [Repair-Encoding](docs/Repair-Encoding.md) — Re-encodes commonly mis-encoded text.\r\n- [Repair-FileEditorConfig](docs/Repair-FileEditorConfig.md) — Corrects a file's editorconfig settings when they differ from the actual formatting found.\r\n- [Test-BinaryFile](docs/Test-BinaryFile.md) — Returns true if a file does not appear to contain parseable text, and presumably contains binary data.\r\n- [Test-BrokenEncoding](docs/Test-BrokenEncoding.md) — Returns true if text contains a nonsense sequence of characters resulting from parsing text with the wrong encoding.\r\n- [Test-FileEditorConfig](docs/Test-FileEditorConfig.md) — Validates a file's editorconfig settings against the actual formatting found.\r\n- [Test-FinalNewline](docs/Test-FinalNewline.md) — Returns true if a file ends with a newline as required by the POSIX standard for text files.\r\n- [Test-TextFile](docs/Test-TextFile.md) — Returns true if a file contains text.\r\n- [Test-Utf8Encoding](docs/Test-Utf8Encoding.md) — Returns true if a file is parseable as UTF-8.\r\n- [Test-Utf8Signature](docs/Test-Utf8Signature.md) — Returns true if a file starts with the optional UTF-8 BOM/signature.\r\n\r\nTests\r\n-----\r\n\r\nTests are written for [Pester](https://github.com/Pester/Pester) (`.\\test.cmd`).\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianary%2Fdetextive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianary%2Fdetextive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianary%2Fdetextive/lists"}