![]() |
VOOZH | about |
dotnet add package magic.lambda.config --version 17.2.0
NuGet\Install-Package magic.lambda.config -Version 17.2.0
<PackageReference Include="magic.lambda.config" Version="17.2.0" />
<PackageVersion Include="magic.lambda.config" Version="17.2.0" />Directory.Packages.props
<PackageReference Include="magic.lambda.config" />Project file
paket add magic.lambda.config --version 17.2.0
#r "nuget: magic.lambda.config, 17.2.0"
#:package magic.lambda.config@17.2.0
#addin nuget:?package=magic.lambda.config&version=17.2.0Install as a Cake Addin
#tool nuget:?package=magic.lambda.config&version=17.2.0Install as a Cake Tool
This project provides configuration settings slots for Magic. The project provides the following slots, allowing you to retrieve configuration settings from your "appsettings.json" configuration file, in addition to saving and loading your configuration file.
This slot allows you to retrieve configuration settings. To retrieve settings you can supply a "path" such as "foo:bar" to for instance an invocation to [config.get]. This will traverse into your "foo" config setting, find its "bar" key, and return the value of your "bar" key. Below is an example of usage.
config.get:"foo:bar"
Assuming your configuration file looks like the following.
{
"foo": {
"bar": 42
}
}
... afterwards the value of your [config.get] node will be the following.
config.get:42
Notice - Due to implementation details of .Net and its IConfiguration specifically, values
returned will always be strings, and you'll have to manually convert these to other types, using for
instance the [convert] slot from magic.lambda. This might change in a future release though.
You can also provide a default value that will be returned if no configuration value is found, such
as the following illustrates.
.foo:foo
config.get:"magic:foo:non-existing-key"
get-value:x:@.foo
Since the above "non-existing-key" doesn't exist in your configuration file, the above Hyperlambda will return the value "foo" being the result of the invocation to the [get-value] slot. This allows you to create default values your code resorts to if the specified configuration setting doesn't exist.
Magic is 100% Open Source and you can find the primary project GitHub page here.
The source code for this repository can be found at github.com/polterguy/magic.lambda.config, and you can provide feedback, provide bug reports, etc at the same place.
The projects is copyright Thomas Hansen 2023 - 2024, and professionally maintained by AINIRO.IO.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 1 NuGet packages that depend on magic.lambda.config:
| Package | Downloads |
|---|---|
|
magic.library
Helper project for Magic to wire up everything easily by simply adding one package, and invoking two simple methods. When using Magic, this is (probably) the only package you should actually add, since this package pulls in everything else you'll need automatically, and wires up everything sanely by default. To use package go to https://polterguy.github.io |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.2.0 | 1,856 | 1/22/2024 |
| 17.1.7 | 436 | 1/12/2024 |
| 17.1.6 | 399 | 1/11/2024 |
| 17.1.5 | 428 | 1/5/2024 |
| 17.0.1 | 500 | 1/1/2024 |
| 17.0.0 | 639 | 12/14/2023 |
| 16.11.5 | 510 | 11/12/2023 |
| 16.9.0 | 447 | 10/9/2023 |
| 16.7.0 | 772 | 7/11/2023 |
| 16.4.1 | 607 | 7/2/2023 |
| 16.4.0 | 621 | 6/22/2023 |
| 16.3.1 | 499 | 6/7/2023 |
| 16.3.0 | 506 | 5/28/2023 |
| 16.1.9 | 819 | 4/30/2023 |
| 15.10.11 | 620 | 4/13/2023 |
| 15.9.1 | 787 | 3/27/2023 |
| 15.9.0 | 674 | 3/24/2023 |
| 15.8.2 | 693 | 3/20/2023 |
| 15.7.0 | 557 | 3/6/2023 |
| 15.5.0 | 1,796 | 1/28/2023 |