FileExtension 2021.11.2.1330
dotnet add package FileExtension --version 2021.11.2.1330
NuGet\Install-Package FileExtension -Version 2021.11.2.1330
<PackageReference Include="FileExtension" Version="2021.11.2.1330" />
paket add FileExtension --version 2021.11.2.1330
#r "nuget: FileExtension, 2021.11.2.1330"
// Install FileExtension as a Cake Addin #addin nuget:?package=FileExtension&version=2021.11.2.1330 // Install FileExtension as a Cake Tool #tool nuget:?package=FileExtension&version=2021.11.2.1330
FileExtension
What it does
This project helps you to see that a file has the correct extension
What it recognize
There are 344 extensions of files ( 16 tested) . See https://fileextension.readthedocs.io/en/latest/BDD/LightBDDReport/
Please help by making a PR by adding files to https://github.com/ignatandrei/FileExtension/tree/master/src/TestFileExtensions/TestFiles
How to use it
Demo online: https://fileextension.azurewebsites.net/swagger/index.html
Simple use
.NET / C#
Console.WriteLine("Hello World!");
var r = new RecognizerPlugin.RecognizePlugins();
foreach (var item in r.AllExtensions())
{
Console.WriteLine(item);
}
//find the sln
string file = FindSlnToBeRecognized();
var fileExtension = Path.GetExtension(file);
var canRecognize = r.CanRecognizeExtension(fileExtension);
Console.WriteLine($"file {file} can be recognized {canRecognize}");
//found sln, now recognize
var byts = await File.ReadAllBytesAsync(file);
var found = r.RecognizeTheFile(byts, fileExtension);
Console.Write($"file {file} is recognized {found}");
Angular / TypeScript
For calling the service , please see https://github.com/ignatandrei/FileExtension/blob/master/src/FileExtensionAng/src/app/services/FileExtv1.service.ts
For a component, please see https://github.com/ignatandrei/FileExtension/tree/master/src/FileExtensionAng/src/app/file-ext-v1
Contributors ✨
Thanks goes to these wonderful people (emoji key):
<table> <tr> <td align="center"><a href="http://msprogrammer.serviciipeweb.ro/"><img src="https://avatars.githubusercontent.com/u/153982?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Andrei Ignat</b></sub></a><br /><a href="https://github.com/ignatandrei/RecordVisitors/commits?author=ignatandrei" title="Tests">⚠️</a> <a href="https://github.com/ignatandrei/RecordVisitors/commits?author=ignatandrei" title="Code">💻</a></td> </tr> </table>
This project follows the all-contributors specification. Contributions of any kind welcome!
Links
- Project homepage: https://github.com/ignatandrei/FileExtension/
- Code Coverage: https://codecov.io/gh/ignatandrei/FileExtension
- Results of tests in BDD format : https://record-visitors.readthedocs.io/en/latest/BDD/LightBDDReport/
- Code analysis: https://sonarcloud.io/dashboard?id=ignatandrei_RecordVisitors
- Repository: https://github.com/ignatandrei/FileExtension/
- Issue tracker: https://github.com/ignatandrei/FileExtension/issues
- Documentation: https://fileextension.readthedocs.io/en/latest/
- Blog: http://msprogrammer.serviciipeweb.ro/category/FileExtension/
Licence
The code in this project is licensed under MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- McMaster.NETCore.Plugins (>= 1.4.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2021.11.2.1330 | 429 | 11/2/2021 |
2021.10.29.2108 | 351 | 10/29/2021 |
2021.10.29.540 | 338 | 10/29/2021 |