Sqids 1.0.0-preview.3
Prefix ReservedSee the version list below for details.
dotnet add package Sqids --version 1.0.0-preview.3
NuGet\Install-Package Sqids -Version 1.0.0-preview.3
<PackageReference Include="Sqids" Version="1.0.0-preview.3" />
paket add Sqids --version 1.0.0-preview.3
#r "nuget: Sqids, 1.0.0-preview.3"
// Install Sqids as a Cake Addin #addin nuget:?package=Sqids&version=1.0.0-preview.3&prerelease // Install Sqids as a Cake Tool #tool nuget:?package=Sqids&version=1.0.0-preview.3&prerelease
Sqids .NET
Sqids (pronounced "squids") is a small library that lets you generate YouTube-looking IDs from numbers. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups.
Getting started
Install the NuGet package:
Install-Package Sqids
Alternatively, using the .NET CLI:
dotnet add package Sqids
Basic usage:
using Sqids;
var sqids = new SqidsEncoder();
string id = sqids.Encode(123); // id = 'UfB'
int number = sqids.Decode(id).Single(); // number = '123'
Examples
DI usage:
services.AddSingleton(new SqidsEncoder(new()
{
Alphabet = "djpo9831",
}));
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. 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. |
-
net7.0
- No dependencies.
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Sqids:
Package | Downloads |
---|---|
Orbital7.Extensions
.NET Extensions/Utilities |
|
gitViwe.Shared.MediatR
A .NET library for some additional MediatR implementation |
|
laget.Sqids
An implementation for hashed ids using Sqids to be used in public facing DTOs |
|
gitViwe.Shared.Sqids
An abstraction on top of Sqids, a small library that generates YouTube-like IDs from numbers. |
|
H.Util.Ids
Package Description |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Sqids:
Repository | Stars |
---|---|
jonowilliams26/StructuredMinimalApi
An example of a structured minimal api project
|
Version | Downloads | Last updated |
---|---|---|
3.1.0 | 538,696 | 12/1/2023 |
3.0.3 | 95,416 | 9/15/2023 |
3.0.2 | 790 | 9/13/2023 |
3.0.1 | 374 | 9/10/2023 |
3.0.0 | 195 | 9/10/2023 |
2.0.0 | 2,127 | 8/30/2023 |
1.1.0 | 1,518 | 8/18/2023 |
1.0.5 | 167 | 8/16/2023 |
1.0.4 | 341 | 8/8/2023 |
1.0.3 | 146 | 8/8/2023 |
1.0.2 | 180 | 8/7/2023 |
1.0.1 | 180 | 8/7/2023 |
1.0.0 | 480 | 8/6/2023 |
1.0.0-preview.3 | 92 | 8/6/2023 |
1.0.0-preview.2 | 94 | 8/4/2023 |
1.0.0-preview.1 | 93 | 8/4/2023 |