Bit.Butil 9.2.0-pre-01

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-01                
NuGet\Install-Package Bit.Butil -Version 9.2.0-pre-01                
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-01" />                
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-01                
#r "nuget: Bit.Butil, 9.2.0-pre-01"                
#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-01&prerelease

// Install Bit.Butil as a Cake Tool
#tool nuget:?package=Bit.Butil&version=9.2.0-pre-01&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. 
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.2.0 98 1/1/2025
9.2.0-pre-04 39 1/1/2025
9.2.0-pre-03 58 12/31/2024
9.2.0-pre-02 134 12/31/2024
9.2.0-pre-01 75 12/30/2024
9.1.2 562 12/24/2024
9.1.2-pre-01 86 12/23/2024
9.1.1 489 12/15/2024
9.1.1-pre-01 77 12/15/2024
9.1.0 125 12/14/2024
9.1.0-pre-13 93 12/13/2024
9.1.0-pre-12 81 12/13/2024
9.1.0-pre-11 69 12/13/2024
9.1.0-pre-10 182 12/10/2024
9.1.0-pre-09 161 12/6/2024
9.1.0-pre-08 260 12/2/2024
9.1.0-pre-07 78 12/2/2024
9.1.0-pre-06 67 12/2/2024
9.1.0-pre-05 158 12/1/2024
9.1.0-pre-04 104 11/29/2024
9.1.0-pre-03 343 11/25/2024
9.1.0-pre-02 157 11/24/2024
9.1.0-pre-01 84 11/23/2024
9.0.1 350 11/20/2024
9.0.0 228 11/18/2024
9.0.0-pre-02 80 11/18/2024
9.0.0-pre-01 223 11/15/2024
8.12.0 459 11/12/2024
8.12.0-pre-15 146 11/11/2024
8.12.0-pre-14 110 11/11/2024
8.12.0-pre-13 131 11/11/2024
8.12.0-pre-12 113 11/10/2024
8.12.0-pre-11 109 11/9/2024
8.12.0-pre-10 287 11/5/2024
8.12.0-pre-09 87 11/5/2024
8.12.0-pre-08 270 11/1/2024
8.12.0-pre-07 277 10/27/2024
8.12.0-pre-06 196 10/24/2024
8.12.0-pre-05 135 10/21/2024
8.12.0-pre-04 128 10/20/2024
8.12.0-pre-03 636 10/6/2024
8.12.0-pre-02 161 10/2/2024
8.12.0-pre-01 112 9/29/2024
8.11.1-pre-04 146 9/27/2024
8.11.1-pre-03 112 9/26/2024
8.11.1-pre-02 276 9/22/2024
8.11.1-pre-01 170 9/19/2024
8.11.0 460 9/16/2024
8.11.0-pre-09 124 9/15/2024
8.11.0-pre-08 163 9/13/2024
8.11.0-pre-07 158 9/10/2024
8.11.0-pre-06 237 9/4/2024
8.11.0-pre-05 140 9/3/2024
8.11.0-pre-04 339 8/22/2024
8.11.0-pre-03 167 8/21/2024
8.11.0-pre-02 185 8/19/2024
8.11.0-pre-01 223 8/16/2024
8.10.0 557 8/8/2024
8.10.0-pre-05 153 8/4/2024
8.10.0-pre-04 74 8/3/2024
8.10.0-pre-03 1,001 6/26/2024
8.10.0-pre-02 120 6/26/2024
8.10.0-pre-01 108 6/25/2024
8.9.0 1,236 6/9/2024
8.9.0-pre-04 99 6/9/2024
8.9.0-pre-03 192 6/6/2024
8.9.0-pre-02 261 5/31/2024
8.9.0-pre-01 126 5/28/2024
8.8.2-pre-05 154 5/27/2024
8.8.2-pre-04 105 5/26/2024
8.8.2-pre-03 135 5/23/2024
8.8.2-pre-02 332 5/9/2024
8.8.2-pre-01 208 5/1/2024
8.8.1 3,127 4/13/2024
8.8.1-pre-02 92 4/12/2024
8.8.1-pre-01 135 4/12/2024
8.8.0 605 4/1/2024
8.8.0-pre-04 158 3/29/2024
8.8.0-pre-03 262 3/16/2024
8.8.0-pre-02 194 3/10/2024
8.8.0-pre-01 288 2/27/2024
8.7.6 1,791 2/23/2024
8.7.6-pre-08 217 2/23/2024
8.7.6-pre-07 124 2/21/2024
8.7.6-pre-06 108 2/21/2024
8.7.6-pre-05 122 2/18/2024
8.7.6-pre-04 134 2/14/2024
8.7.6-pre-03 103 2/14/2024
8.7.6-pre-02 93 2/14/2024
8.7.6-pre-01 106 2/12/2024
8.7.5 209 2/9/2024
8.7.5-pre-04 138 2/3/2024
8.7.5-pre-03 142 1/29/2024
8.7.5-pre-02 132 1/25/2024
8.7.5-pre-01 104 1/24/2024
8.7.4 396 1/23/2024
8.7.3-pre-02 138 1/22/2024
8.7.3-pre-01 241 1/20/2024
8.7.2 223 1/17/2024
8.7.2-pre-02 140 1/17/2024
8.7.2-pre-01 235 1/11/2024
8.7.1 313 1/9/2024
8.7.0 240 1/8/2024
8.7.0-pre-05 154 1/7/2024
8.7.0-pre-04 208 1/5/2024
8.7.0-pre-03 123 1/4/2024
8.7.0-pre-02 162 12/31/2023
8.7.0-pre-01 112 12/31/2023
8.6.0 198 12/31/2023
8.6.0-pre-03 169 12/25/2023
8.6.0-pre-02 130 12/25/2023
8.6.0-pre-01 215 12/21/2023
8.5.0 150 12/20/2023
8.5.0-pre-02 124 12/16/2023
8.5.0-pre-01 115 12/15/2023
8.4.0 127 12/14/2023
8.4.0-pre-01 121 12/13/2023
8.3.0 132 12/12/2023
8.3.0-pre-03 122 12/11/2023
8.3.0-pre-02 123 12/11/2023
8.3.0-pre-01 109 12/11/2023
8.2.0 277 12/2/2023
8.2.0-pre-05 98 12/2/2023
8.2.0-pre-04 112 12/1/2023
8.2.0-pre-03 120 11/30/2023
8.2.0-pre-02 108 11/29/2023
8.2.0-pre-01 103 11/25/2023
8.1.0 156 11/22/2023
8.1.0-pre-03 82 11/22/2023
8.1.0-pre-02 114 11/20/2023
8.1.0-pre-01 107 11/17/2023
8.0.1 132 11/14/2023
8.0.0-pre-01 114 11/14/2023
7.3.0 85 11/14/2023
7.3.0-pre-01 71 11/14/2023
7.2.0 93 11/14/2023
7.2.0-pre-02 74 11/14/2023
7.2.0-pre-01 76 11/12/2023
7.1.0 91 11/8/2023
7.1.0-pre-05 68 11/7/2023
7.1.0-pre-04 76 11/4/2023
7.1.0-pre-03 75 10/27/2023
7.1.0-pre-02 76 10/23/2023
7.1.0-pre-01 72 10/17/2023
7.0.0 131 10/15/2023
7.0.0-pre-02 79 10/15/2023
7.0.0-pre-01 74 10/13/2023
6.1.0 115 10/13/2023
6.1.0-pre-03 72 10/13/2023
6.1.0-pre-02 77 10/12/2023
6.1.0-pre-01 68 10/11/2023
6.0.0 95 10/9/2023
6.0.0-pre-05 87 10/8/2023
6.0.0-pre-04 76 10/6/2023
6.0.0-pre-03 75 10/2/2023
6.0.0-pre-02 83 9/29/2023
6.0.0-pre-01 75 9/27/2023
5.6.1 141 9/20/2023
5.6.1-pre-01 108 9/20/2023
5.6.0 146 9/20/2023
5.6.0-pre-03 101 9/20/2023
5.6.0-pre-02 101 9/18/2023
5.6.0-pre-01 129 9/14/2023
5.5.0 146 9/2/2023
5.5.0-pre-08 104 9/2/2023
5.5.0-pre-07 110 8/30/2023
5.5.0-pre-06 106 8/29/2023
5.5.0-pre-05 123 8/28/2023
5.5.0-pre-04 122 8/28/2023
5.5.0-pre-03 121 8/27/2023
5.5.0-pre-02 102 8/26/2023
5.5.0-pre-01 111 8/24/2023
5.4.0 163 8/20/2023
5.4.0-pre-05 127 8/20/2023
5.4.0-pre-04 126 8/19/2023
5.4.0-pre-03 108 8/19/2023
5.4.0-pre-02 124 8/19/2023
5.4.0-pre-01 124 8/15/2023
5.3.0 155 8/10/2023
5.3.0-pre-07 131 8/9/2023
5.3.0-pre-06 111 8/8/2023
5.3.0-pre-05 130 8/7/2023
5.3.0-pre-04 136 8/6/2023
5.3.0-pre-03 143 8/1/2023
5.3.0-pre-02 139 8/1/2023
5.3.0-pre-01 135 7/31/2023
5.2.0 145 7/28/2023
5.2.0-pre-05 126 7/27/2023
5.2.0-pre-03 145 7/24/2023
5.2.0-pre-02 139 7/24/2023
5.2.0-pre-01 133 7/10/2023
5.1.0 189 7/5/2023
5.1.0-pre-16 136 7/4/2023
5.1.0-pre-15 141 7/3/2023
5.1.0-pre-14 134 7/3/2023
5.1.0-pre-13 132 7/3/2023
5.1.0-pre-12 125 7/2/2023
5.1.0-pre-11 144 7/2/2023
5.1.0-pre-10 135 7/2/2023
5.1.0-pre-09 133 6/29/2023
5.1.0-pre-08 112 6/27/2023
5.1.0-pre-07 122 6/25/2023
5.1.0-pre-06 127 6/24/2023
5.1.0-pre-04 115 6/24/2023
5.1.0-pre-03 117 6/22/2023
5.1.0-pre-02 128 6/17/2023
5.1.0-pre-01 125 6/16/2023
5.0.0 182 5/29/2023
5.0.0-pre-02 116 5/29/2023
5.0.0-pre-01 125 5/25/2023
4.9.11-pre-02 125 5/25/2023
4.9.11-pre-01 126 5/25/2023
4.9.10 209 5/25/2023
4.9.10-pre-07 117 5/25/2023
4.9.10-pre-06 120 5/16/2023
4.9.10-pre-05 113 5/15/2023
4.9.10-pre-04 111 5/6/2023
4.9.10-pre-03 116 5/2/2023
4.9.10-pre-01 135 4/26/2023
4.9.9 237 4/10/2023
4.9.9-pre-03 131 4/9/2023
4.9.9-pre-02 144 3/29/2023
4.9.9-pre-01 127 3/29/2023
4.9.8-pre-02 148 3/21/2023
4.9.8-pre-01 132 3/20/2023
4.9.7-pre-01 139 3/6/2023
4.9.6 305 2/25/2023
4.9.6-pre-05 130 2/23/2023
4.9.6-pre-04 133 2/23/2023
4.9.6-pre-03 132 2/20/2023
4.9.6-pre-02 140 2/15/2023
4.9.5 293 2/8/2023
4.9.5-pre-03 144 2/8/2023
4.9.5-pre-02 130 2/8/2023
4.9.5-pre-01 124 2/7/2023
4.9.4 324 1/31/2023
4.9.4-pre-02 152 1/31/2023
4.9.4-pre-01 150 1/27/2023
4.9.3-pre-04 155 1/22/2023
4.9.3-pre-03 133 1/20/2023
4.9.3-pre-02 145 1/19/2023
4.9.2-pre-01 157 1/9/2023
4.9.1-pre-02 152 12/26/2022
4.9.1-pre-01 135 12/18/2022
4.9.0-pre-02 154 11/27/2022
4.9.0-pre-01 126 11/22/2022
4.8.0 411 11/15/2022
4.8.0-pre-02 152 11/14/2022
4.8.0-pre-01 156 11/11/2022
4.7.0 122 10/31/2022
4.7.0-pre-04 117 10/31/2022
4.7.0-pre-03 102 10/31/2022
4.7.0-pre-02 111 10/29/2022
4.7.0-pre-01 105 10/27/2022
4.6.0-pre-01 101 10/27/2022
4.5.0-pre-01 135 10/20/2022
4.4.1-pre-01 147 10/20/2022
4.4.0-pre-01 105 10/15/2022
4.3.2-pre-04 97 10/7/2022
4.3.2-pre-03 96 10/6/2022
4.3.2-pre-01 110 9/29/2022
4.3.1 127 9/21/2022
4.3.0 124 9/21/2022
4.2.0-pre-07 129 9/19/2022
4.2.0-pre-05 150 9/18/2022
4.2.0-pre-04 160 9/18/2022
4.2.0-pre-02 160 9/14/2022
4.2.0-pre-01 107 9/12/2022
4.1.0 142 9/8/2022
4.1.0-pre-01 123 9/8/2022
4.0.0 123 9/1/2022
3.1.0-pre-07 102 9/1/2022
3.1.0-pre-06 98 8/30/2022
3.1.0-pre-05 101 8/29/2022
3.1.0-pre-04 101 8/28/2022
3.1.0-pre-03 104 8/27/2022
3.1.0-pre-02 110 8/25/2022
3.1.0-pre-01 106 8/23/2022
3.0.0 146 8/15/2022
3.0.0-pre-09 118 8/15/2022
3.0.0-pre-08 110 8/15/2022
3.0.0-pre-07 111 8/15/2022
3.0.0-pre-06 148 8/14/2022
3.0.0-pre-05 160 8/14/2022
3.0.0-pre-04 161 8/9/2022
3.0.0-pre-03 156 8/8/2022
3.0.0-pre-02 151 8/7/2022
3.0.0-pre-01 181 7/29/2022
2.0.0 518 7/25/2022
2.0.0-pre-14 147 7/24/2022
2.0.0-pre-12 167 7/21/2022
2.0.0-pre-11 167 7/21/2022
2.0.0-pre-10 160 7/20/2022
2.0.0-pre-09 170 7/20/2022
2.0.0-pre-08 173 7/19/2022
2.0.0-pre-07 167 7/19/2022
2.0.0-pre-06 175 7/18/2022
2.0.0-pre-05 184 7/17/2022
2.0.0-pre-04 151 7/14/2022
2.0.0-pre-03 173 7/13/2022
2.0.0-pre-02 161 7/12/2022
2.0.0-pre-01 156 7/8/2022
2.0.0-pre-00 172 7/4/2022
1.0.2 551 7/4/2022
1.0.0 545 7/4/2022