Bit.Butil 9.2.0-pre-02

This is a prerelease version of Bit.Butil.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Bit.Butil --version 9.2.0-pre-02                
NuGet\Install-Package Bit.Butil -Version 9.2.0-pre-02                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bit.Butil" Version="9.2.0-pre-02" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bit.Butil --version 9.2.0-pre-02                
#r "nuget: Bit.Butil, 9.2.0-pre-02"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Bit.Butil as a Cake Addin
#addin nuget:?package=Bit.Butil&version=9.2.0-pre-02&prerelease

// Install Bit.Butil as a Cake Tool
#tool nuget:?package=Bit.Butil&version=9.2.0-pre-02&prerelease                

bit Butil

bit Blazor Utilities for JavaScript


To start using Butil you first need to install the NuGet package:

dotnet add package Bit.Butil

then add its script tag to your app:

<script src="_content/Bit.Butil/bit-butil.js"></script>

you also need to add its services like this:

using Bit.Butil;

...

builder.Services.AddBitButilServices();

...

Now you can inject its classes to use the utilities.

Window

To use a representation of the DOM's window object in C# you can inject the Bit.Butil.Window class:

@inject Bit.Butil.Window window

...

@code {

    ...

    await window.AddEventListener(ButilEvents.KeyDown, args => { ... });

    ...
}

Document

To use a representation of the DOM's document object in C# you can inject the Bit.Butil.Document class:

@inject Bit.Butil.Document document

...

@code {

    ...

    await document.AddEventListener(ButilEvents.Click, args => { ... });

    ...
}

Keyboard

In Butil there is a special class to work with keyboard and short keys. you can use this class by inejcting the Bit.Butil.Keyboard class:

@inject Bit.Butil.Keyboard keyboard

...

@code {
    ...

    await keyboard.Add("F10", args => { ... }, , ButilModifiers.Alt | ButilModifiers.Ctrl);

    ...
}

Console

To use the browser console features you can try injecting the Bit.Butil.Console class like this:

@inject Bit.Butil.Console console

...

@code {
    ...

    console.Log("This is a test log:", someValue);
    console.Assert(condition, "The condition failed!", testedValue);
    console.Error("This is a test error:", value);

    ...
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Bit.Butil:

Repository Stars
bitfoundation/bitplatform
Build all of your apps using what you already know and love ❤️
Version Downloads Last updated
9.4.0-pre-02 119 2/2/2025
9.4.0-pre-01 70 2/1/2025
9.3.1-pre-05 445 1/26/2025
9.3.1-pre-04 289 1/23/2025
9.3.1-pre-03 190 1/19/2025
9.3.1-pre-02 64 1/18/2025
9.3.1-pre-01 155 1/14/2025
9.3.0 528 1/11/2025
9.3.0-pre-01 57 1/11/2025
9.2.1 544 1/5/2025
9.2.1-pre-02 204 1/4/2025
9.2.1-pre-01 220 1/3/2025
9.2.0 169 1/1/2025
9.2.0-pre-04 83 1/1/2025
9.2.0-pre-03 103 12/31/2024
9.2.0-pre-02 178 12/31/2024
9.2.0-pre-01 84 12/30/2024
9.1.2 599 12/24/2024
9.1.2-pre-01 95 12/23/2024
9.1.1 515 12/15/2024
9.1.1-pre-01 89 12/15/2024
9.1.0 141 12/14/2024
9.1.0-pre-13 103 12/13/2024
9.1.0-pre-12 91 12/13/2024
9.1.0-pre-11 78 12/13/2024
9.1.0-pre-10 189 12/10/2024
9.1.0-pre-09 169 12/6/2024
9.1.0-pre-08 268 12/2/2024
9.1.0-pre-07 86 12/2/2024
9.1.0-pre-06 73 12/2/2024
9.1.0-pre-05 164 12/1/2024
9.1.0-pre-04 110 11/29/2024
9.1.0-pre-03 359 11/25/2024
9.1.0-pre-02 163 11/24/2024
9.1.0-pre-01 90 11/23/2024
9.0.1 469 11/20/2024
9.0.0 234 11/18/2024
9.0.0-pre-02 86 11/18/2024
9.0.0-pre-01 229 11/15/2024
8.12.0 467 11/12/2024
8.12.0-pre-15 154 11/11/2024
8.12.0-pre-14 116 11/11/2024
8.12.0-pre-13 139 11/11/2024
8.12.0-pre-12 125 11/10/2024
8.12.0-pre-11 119 11/9/2024
8.12.0-pre-10 295 11/5/2024
8.12.0-pre-09 95 11/5/2024
8.12.0-pre-08 276 11/1/2024
8.12.0-pre-07 289 10/27/2024
8.12.0-pre-06 202 10/24/2024
8.12.0-pre-05 143 10/21/2024
8.12.0-pre-04 134 10/20/2024
8.12.0-pre-03 643 10/6/2024
8.12.0-pre-02 165 10/2/2024
8.12.0-pre-01 119 9/29/2024
8.11.1-pre-04 150 9/27/2024
8.11.1-pre-03 118 9/26/2024
8.11.1-pre-02 282 9/22/2024
8.11.1-pre-01 174 9/19/2024
8.11.0 466 9/16/2024
8.11.0-pre-09 126 9/15/2024
8.11.0-pre-08 167 9/13/2024
8.11.0-pre-07 160 9/10/2024
8.11.0-pre-06 241 9/4/2024
8.11.0-pre-05 142 9/3/2024
8.11.0-pre-04 341 8/22/2024
8.11.0-pre-03 169 8/21/2024
8.11.0-pre-02 189 8/19/2024
8.11.0-pre-01 225 8/16/2024
8.10.0 601 8/8/2024
8.10.0-pre-05 155 8/4/2024
8.10.0-pre-04 78 8/3/2024
8.10.0-pre-03 1,004 6/26/2024
8.10.0-pre-02 123 6/26/2024
8.10.0-pre-01 113 6/25/2024
8.9.0 1,298 6/9/2024
8.9.0-pre-04 102 6/9/2024
8.9.0-pre-03 195 6/6/2024
8.9.0-pre-02 264 5/31/2024
8.9.0-pre-01 129 5/28/2024
8.8.2-pre-05 159 5/27/2024
8.8.2-pre-04 110 5/26/2024
8.8.2-pre-03 140 5/23/2024
8.8.2-pre-02 335 5/9/2024
8.8.2-pre-01 211 5/1/2024
8.8.1 3,158 4/13/2024
8.8.1-pre-02 95 4/12/2024
8.8.1-pre-01 138 4/12/2024
8.8.0 608 4/1/2024
8.8.0-pre-04 161 3/29/2024
8.8.0-pre-03 265 3/16/2024
8.8.0-pre-02 197 3/10/2024
8.8.0-pre-01 291 2/27/2024
8.7.6 1,795 2/23/2024
8.7.6-pre-08 220 2/23/2024
8.7.6-pre-07 127 2/21/2024
8.7.6-pre-06 111 2/21/2024
8.7.6-pre-05 125 2/18/2024
8.7.6-pre-04 137 2/14/2024
8.7.6-pre-03 106 2/14/2024
8.7.6-pre-02 96 2/14/2024
8.7.6-pre-01 109 2/12/2024
8.7.5 212 2/9/2024
8.7.5-pre-04 141 2/3/2024
8.7.5-pre-03 145 1/29/2024
8.7.5-pre-02 135 1/25/2024
8.7.5-pre-01 107 1/24/2024
8.7.4 401 1/23/2024
8.7.3-pre-02 141 1/22/2024
8.7.3-pre-01 244 1/20/2024
8.7.2 226 1/17/2024
8.7.2-pre-02 143 1/17/2024
8.7.2-pre-01 238 1/11/2024
8.7.1 316 1/9/2024
8.7.0 243 1/8/2024
8.7.0-pre-05 157 1/7/2024
8.7.0-pre-04 211 1/5/2024
8.7.0-pre-03 126 1/4/2024
8.7.0-pre-02 165 12/31/2023
8.7.0-pre-01 115 12/31/2023
8.6.0 201 12/31/2023
8.6.0-pre-03 172 12/25/2023
8.6.0-pre-02 133 12/25/2023
8.6.0-pre-01 218 12/21/2023
8.5.0 153 12/20/2023
8.5.0-pre-02 127 12/16/2023
8.5.0-pre-01 118 12/15/2023
8.4.0 132 12/14/2023
8.4.0-pre-01 124 12/13/2023
8.3.0 135 12/12/2023
8.3.0-pre-03 127 12/11/2023
8.3.0-pre-02 126 12/11/2023
8.3.0-pre-01 113 12/11/2023
8.2.0 280 12/2/2023
8.2.0-pre-05 101 12/2/2023
8.2.0-pre-04 115 12/1/2023
8.2.0-pre-03 125 11/30/2023
8.2.0-pre-02 111 11/29/2023
8.2.0-pre-01 106 11/25/2023
8.1.0 159 11/22/2023
8.1.0-pre-03 87 11/22/2023
8.1.0-pre-02 117 11/20/2023
8.1.0-pre-01 112 11/17/2023
8.0.1 135 11/14/2023
8.0.0-pre-01 117 11/14/2023
7.3.0 90 11/14/2023
7.3.0-pre-01 77 11/14/2023
7.2.0 96 11/14/2023
7.2.0-pre-02 77 11/14/2023
7.2.0-pre-01 81 11/12/2023
7.1.0 94 11/8/2023
7.1.0-pre-05 73 11/7/2023
7.1.0-pre-04 79 11/4/2023
7.1.0-pre-03 80 10/27/2023
7.1.0-pre-02 79 10/23/2023
7.1.0-pre-01 77 10/17/2023
7.0.0 134 10/15/2023
7.0.0-pre-02 82 10/15/2023
7.0.0-pre-01 79 10/13/2023
6.1.0 118 10/13/2023
6.1.0-pre-03 77 10/13/2023
6.1.0-pre-02 80 10/12/2023
6.1.0-pre-01 71 10/11/2023
6.0.0 98 10/9/2023
6.0.0-pre-05 90 10/8/2023
6.0.0-pre-04 81 10/6/2023
6.0.0-pre-03 80 10/2/2023
6.0.0-pre-02 86 9/29/2023
6.0.0-pre-01 80 9/27/2023
5.6.1 146 9/20/2023
5.6.1-pre-01 111 9/20/2023
5.6.0 149 9/20/2023
5.6.0-pre-03 104 9/20/2023
5.6.0-pre-02 106 9/18/2023
5.6.0-pre-01 134 9/14/2023
5.5.0 151 9/2/2023
5.5.0-pre-08 107 9/2/2023
5.5.0-pre-07 114 8/30/2023
5.5.0-pre-06 111 8/29/2023
5.5.0-pre-05 126 8/28/2023
5.5.0-pre-04 128 8/28/2023
5.5.0-pre-03 126 8/27/2023
5.5.0-pre-02 105 8/26/2023
5.5.0-pre-01 114 8/24/2023
5.4.0 168 8/20/2023
5.4.0-pre-05 130 8/20/2023
5.4.0-pre-04 129 8/19/2023
5.4.0-pre-03 113 8/19/2023
5.4.0-pre-02 127 8/19/2023
5.4.0-pre-01 130 8/15/2023
5.3.0 160 8/10/2023
5.3.0-pre-07 136 8/9/2023
5.3.0-pre-06 117 8/8/2023
5.3.0-pre-05 134 8/7/2023
5.3.0-pre-04 142 8/6/2023
5.3.0-pre-03 146 8/1/2023
5.3.0-pre-02 142 8/1/2023
5.3.0-pre-01 138 7/31/2023
5.2.0 150 7/28/2023
5.2.0-pre-05 130 7/27/2023
5.2.0-pre-03 148 7/24/2023
5.2.0-pre-02 142 7/24/2023
5.2.0-pre-01 138 7/10/2023
5.1.0 194 7/5/2023
5.1.0-pre-16 139 7/4/2023
5.1.0-pre-15 144 7/3/2023
5.1.0-pre-14 137 7/3/2023
5.1.0-pre-13 137 7/3/2023
5.1.0-pre-12 128 7/2/2023
5.1.0-pre-11 150 7/2/2023
5.1.0-pre-10 138 7/2/2023
5.1.0-pre-09 138 6/29/2023
5.1.0-pre-08 117 6/27/2023
5.1.0-pre-07 125 6/25/2023
5.1.0-pre-06 130 6/24/2023
5.1.0-pre-04 118 6/24/2023
5.1.0-pre-03 122 6/22/2023
5.1.0-pre-02 133 6/17/2023
5.1.0-pre-01 128 6/16/2023
5.0.0 185 5/29/2023
5.0.0-pre-02 121 5/29/2023
5.0.0-pre-01 128 5/25/2023
4.9.11-pre-02 128 5/25/2023
4.9.11-pre-01 129 5/25/2023
4.9.10 212 5/25/2023
4.9.10-pre-07 120 5/25/2023
4.9.10-pre-06 126 5/16/2023
4.9.10-pre-05 118 5/15/2023
4.9.10-pre-04 114 5/6/2023
4.9.10-pre-03 119 5/2/2023
4.9.10-pre-01 138 4/26/2023
4.9.9 240 4/10/2023
4.9.9-pre-03 136 4/9/2023
4.9.9-pre-02 148 3/29/2023
4.9.9-pre-01 131 3/29/2023
4.9.8-pre-02 150 3/21/2023
4.9.8-pre-01 136 3/20/2023
4.9.7-pre-01 143 3/6/2023
4.9.6 310 2/25/2023
4.9.6-pre-05 135 2/23/2023
4.9.6-pre-04 136 2/23/2023
4.9.6-pre-03 137 2/20/2023
4.9.6-pre-02 145 2/15/2023
4.9.5 296 2/8/2023
4.9.5-pre-03 149 2/8/2023
4.9.5-pre-02 135 2/8/2023
4.9.5-pre-01 127 2/7/2023
4.9.4 329 1/31/2023
4.9.4-pre-02 157 1/31/2023
4.9.4-pre-01 155 1/27/2023
4.9.3-pre-04 158 1/22/2023
4.9.3-pre-03 136 1/20/2023
4.9.3-pre-02 150 1/19/2023
4.9.2-pre-01 160 1/9/2023
4.9.1-pre-02 155 12/26/2022
4.9.1-pre-01 140 12/18/2022
4.9.0-pre-02 157 11/27/2022
4.9.0-pre-01 131 11/22/2022
4.8.0 414 11/15/2022
4.8.0-pre-02 157 11/14/2022
4.8.0-pre-01 159 11/11/2022
4.7.0 127 10/31/2022
4.7.0-pre-04 122 10/31/2022
4.7.0-pre-03 105 10/31/2022
4.7.0-pre-02 114 10/29/2022
4.7.0-pre-01 109 10/27/2022
4.6.0-pre-01 106 10/27/2022
4.5.0-pre-01 138 10/20/2022
4.4.1-pre-01 150 10/20/2022
4.4.0-pre-01 108 10/15/2022
4.3.2-pre-04 100 10/7/2022
4.3.2-pre-03 99 10/6/2022
4.3.2-pre-01 113 9/29/2022
4.3.1 130 9/21/2022
4.3.0 126 9/21/2022
4.2.0-pre-07 132 9/19/2022
4.2.0-pre-05 153 9/18/2022
4.2.0-pre-04 163 9/18/2022
4.2.0-pre-02 163 9/14/2022
4.2.0-pre-01 110 9/12/2022
4.1.0 145 9/8/2022
4.1.0-pre-01 126 9/8/2022
4.0.0 126 9/1/2022
3.1.0-pre-07 105 9/1/2022
3.1.0-pre-06 101 8/30/2022
3.1.0-pre-05 104 8/29/2022
3.1.0-pre-04 104 8/28/2022
3.1.0-pre-03 107 8/27/2022
3.1.0-pre-02 113 8/25/2022
3.1.0-pre-01 109 8/23/2022
3.0.0 149 8/15/2022
3.0.0-pre-09 121 8/15/2022
3.0.0-pre-08 115 8/15/2022
3.0.0-pre-07 114 8/15/2022
3.0.0-pre-06 151 8/14/2022
3.0.0-pre-05 163 8/14/2022
3.0.0-pre-04 164 8/9/2022
3.0.0-pre-03 159 8/8/2022
3.0.0-pre-02 154 8/7/2022
3.0.0-pre-01 184 7/29/2022
2.0.0 521 7/25/2022
2.0.0-pre-14 150 7/24/2022
2.0.0-pre-12 170 7/21/2022
2.0.0-pre-11 170 7/21/2022
2.0.0-pre-10 163 7/20/2022
2.0.0-pre-09 173 7/20/2022
2.0.0-pre-08 176 7/19/2022
2.0.0-pre-07 170 7/19/2022
2.0.0-pre-06 178 7/18/2022
2.0.0-pre-05 187 7/17/2022
2.0.0-pre-04 154 7/14/2022
2.0.0-pre-03 176 7/13/2022
2.0.0-pre-02 164 7/12/2022
2.0.0-pre-01 159 7/8/2022
2.0.0-pre-00 175 7/4/2022
1.0.2 554 7/4/2022
1.0.0 554 7/4/2022