@std-uritemplate/std-uritemplate
Advanced tools
Comparing version 0.0.50 to 0.0.52
{ | ||
"name": "@std-uritemplate/std-uritemplate", | ||
"version": "0.0.50", | ||
"version": "0.0.52", | ||
"description": "std-uritemplate implementation for TS/JS", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -13,2 +13,3 @@ # std-uritemplate | ||
[![Packagist Version](http://poser.pugx.org/stduritemplate/stduritemplate/v?style=flat)](https://packagist.org/packages/stduritemplate/stduritemplate) | ||
[![Pub Version](https://img.shields.io/pub/v/std_uritemplate)](https://pub.dev/packages/std_uritemplate) | ||
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/std-uritemplate/std-uritemplate/blob/main/Contributing.md) | ||
@@ -30,2 +31,3 @@ | ||
| Swift | ✅ | ❌ | ✅ | | ||
| Dart | ✅ | ❌ | ✅ | | ||
@@ -204,2 +206,29 @@ ## Usage | ||
### Dart | ||
Install the package: | ||
```bash | ||
dart pub add std_uritemplate | ||
``` | ||
for flutter: | ||
```bash | ||
flutter pub add std_uritemplate | ||
``` | ||
and use it: | ||
```dart | ||
import 'package:std_uritemplate/std_uritemplate.dart'; | ||
void main() { | ||
final template = 'https://example.com/{var}'; | ||
final substitutions = {'var': 'value'}; | ||
print(StdUriTemplate.expand(template, substitutions)); | ||
} | ||
``` | ||
## Design decisions | ||
@@ -206,0 +235,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54960
283