encoder 1.0.0 copy "encoder: ^1.0.0" to clipboard
encoder: ^1.0.0 copied to clipboard

A library for encoding string and json data into viable URI param.

example/encoder_example.dart

import 'package:encoder/encoder.dart';

void main() {
  // Encode String
  print(Encoder.encodeString('Hello, World!'));
  // Decode String
  print(Encoder.decodeString('SGVsbG8sIFdvcmxkIQ%3D%3D'));

  // Encode JSON
  print(Encoder.encodeJson({'message': 'Hello, World!'}));
  // Decode JSON
  print(Encoder.decodeJson('eyJtZXNzYWdlIjoiSGVsbG8sIFdvcmxkISJ9'));
}
5
likes
150
points
101
downloads

Publisher

verified publisherpolarstork.com

Weekly Downloads

A library for encoding string and json data into viable URI param.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on encoder